Question #873

What is the output of the code snippet below?
print(True + True)

In Python, the boolean True evaluates to 1. So True + True evaluates to 2. (problemsolvingwithpython.com/04-Data-Types-and-Variables/...)


Comment on Disqus:

Question difficulty: ๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต


Similar questions: