What does while true do in python?



What does while true do in python?..

Answer / Vikram Surjeet Kumar

In Python, 'while true' creates an infinite loop similar to 'while 1'. Both are equivalent and can be used interchangeably.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What is a string in python?

1 Answers  


1 What is Python?

1 Answers  


How Python performs Compile-time and Run-time code checking?

1 Answers  


What is data hiding in python?

1 Answers  


How do I sort a dictionary by value?

1 Answers  


What animals sleep the least?

1 Answers  


What are the optional statements that can be used inside a <try-except> block in python?

1 Answers  


Why is python not fully object oriented?

1 Answers  


Does python support switch or case statement in Python? If not what is the reason for the same?

1 Answers  


Explain what is a flask? What are its benefits?

1 Answers  


Can we use singleton functionality without making a singleton class in Python?

1 Answers  


Are there pointers in python?

1 Answers  


Categories