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 #948
print(False-True)
When evaluated as part of arithmetical operations, booleans are cast as integers: False as 0 and True as 1 . As such, the result is -1 . (w3schools.com/python/python_booleans.asp)
What is the output of the code snippet below?
— The Python Quiz (@thepythonquiz) August 27, 2021
print(False-True)
True
False
-1
0
π Comment the answer, like and retweet! #python
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: