# Infinite While Loop

**URL:** <https://discuss.python.org/t/infinite-while-loop/12174>\
**Category:** Python Help\
**Created:** [November 24, 2021, 11:30pm UTC](https://discuss.python.org/t/infinite-while-loop/12174 "2021-11-24T23:30:55Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Rohagan4](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@Rohagan4](https://discuss.python.org/u/Rohagan4)\
**Post date:** [November 25, 2021, 12:08am UTC](https://discuss.python.org/t/infinite-while-loop/12174/4 "2021-11-25T00:08:54Z")

</div>

Hey Quercus. Thanks for the quick response. I’m still newer to python, but trying to get the hang of it. Since the last line in my text doc is an empty string, I expected that that would trigger the end of the while loop (since the condition would be met). Is this incorrect?

---

_[View the full topic](https://discuss.python.org/t/infinite-while-loop/12174)._
