The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #690
while True:
print(1)
break
1 will be printed only once. Python is smart enough to make a break in a while True: stop the loop altogether. (docs.python.org/3/tutorial/controlflow.html#break-and-con...)
What will happen with the code snippet below?
— The Python Quiz (@thepythonquiz) May 23, 2021
while True:
print(1)
break
1 will never be printed.
1 will be printed only once.
1 will be printed an infinity of times.
π Comment the answer, like and retweet! #python
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: