- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Why there is not do...while loop in Python?
PEP 315 (Python Enhancement Proposal) to include do..while statement has been rejected because it doen't fit in the general format of indented block statement: indented block used by every other Python compound statement.
In words of Guido Van Rossum - "Please reject the PEP. More variations along these lines won't make the language more elegant or easier to learn. They'd just save a few hasty folks some typing while making others who have to read/maintain their code wonder what it means".
- Related Articles
- do…while loop vs. while loop in C/C++
- Do-while loop in Arduino
- How to emulate a do-while loop in Python?
- What is do...while loop statement in JavaScript?
- Difference Between while and do-while Loop
- The do…while loop in Javascript
- Java do-while loop example
- Java infinite do-while loop
- What are the differences between while loop and do-while loop in Java?
- Difference between for loop and while loop in Python
- How to use ‘do while loop’ in Java?
- How to use C# do while loop?
- Why do backslashes appear twice while printing in Python?
- How does Python while loop work?
- Why is not in HTML 5 Tag list while is?

Advertisements