What does while 1 mean in python?



What does while 1 mean in python?..

Answer / Ketan Rathi

In Python, 'while 1' creates an infinite loop that continues to run until the program is stopped. This construct can be used when you need the program to repeatedly execute a certain block of code.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Is javascript harder than python?

1 Answers  


What made you to choose python as a programming language?

1 Answers  


What is %s %d in python?

1 Answers  


Can you sort a string in python?

1 Answers  


Do you know what does the <yield> keyword do in python?

1 Answers  


How can I find the methods or attributes of an object in python?

1 Answers  


What tools can help find bugs or perform the static analysis?

1 Answers  


Explain delegation in python

1 Answers  


What is meant by“call by value” in python?

1 Answers  


How to convert a list into a string?

1 Answers  


Is nan a float python?

1 Answers  


How is the Implementation of Pythons dictionaries done?

1 Answers  


Categories