---
title: "Discussion on \"What is a while loop in Python?\" | Hashnode"
description: "Discussion on \"What is a while loop in Python?\". Table of Content\n\nWhile loop in Python\nSingle statement\nWhile loop with else statement\nInfinite while loop\nClosing Thoughts\n\nWhile loop in Python\nThe while loop in python is used to iterate over a block of code till the given condition is True. And a..."
url: "https://hashnode.com/posts/what-is-a-while-loop-in-python/62de5d2e790e138f3d395a29"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What is a while loop in Python?](https://shorttechtutorials.hashnode.dev/what-is-a-while-loop-in-python?utm_source=hashnode&utm_medium=feed)

Table of Content While loop in Python Single statement While loop with else statement Infinite while loop Closing Thoughts While loop in Python The while loop in python is used to iterate over a block of code till the given condition is True. And a...

Jul 25, 2022 · 3 min read · shorttechtutorials.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#python3](https://hashnode.com/tag/python3)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#developer](https://hashnode.com/tag/developer)

## Written by

[Short Tech Tutorials](https://hashnode.com/@shorttutorials)

@shorttutorials

  
[View profile](https://hashnode.com/@shorttutorials)

An initiative at Flexiple, to write short curated tutorials around often used or interesting concepts.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
