---
title: "Comment by Ammar on \"Python While Loops: Common Errors and How to Fix Them\" | Hashnode"
description: "Sometimes I used &quot;break&quot; instead of increment line to stop the infinite loop from happened. But this increment line also useful. Thanks!"
url: "https://hashnode.com/posts/python-while-loops-common-errors-and-how-to-fix-them/618c15ed468c06249afc6c4b/comment/6190c0a1c5a37f2de1be99a9"
---

[Discussion](https://hashnode.com/posts/python-while-loops-common-errors-and-how-to-fix-them/618c15ed468c06249afc6c4b)

Comment [Python While Loops: Common Errors and How to Fix Them](https://hashnode.com/posts/python-while-loops-common-errors-and-how-to-fix-them/618c15ed468c06249afc6c4b)

[Ammar](https://hashnode.com/@ammarrite)

[Nov 14, 2021](https://hashnode.com/posts/python-while-loops-common-errors-and-how-to-fix-them/618c15ed468c06249afc6c4b/comment/6190c0a1c5a37f2de1be99a9)

Sometimes I used "break" instead of increment line to stop the infinite loop from happened. But this increment line also useful. Thanks!
