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!
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
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: 🔵🔵🔵🔵🔵