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 #259
var = True
if var is True:
print("Python")
According to PEP8, if var is True: should be written if var: . (python.org/dev/peps/pep-0008)
The code snippet below is PEP8 compliant.
— The Python Quiz (@thepythonquiz) March 28, 2021
var = True
if var is True:
print("Python")
False
True
π Comment the answer, like and retweet! #python
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: