$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · hard · #127

What is printed?

print(float('inf') > 10 ** 100, int(True) + int(True))
  1. True 2
  2. False 2
  3. True 1
  4. False 1
Infinity exceeds any finite integer, and int(True) is 1.
Play Problem Solving ▸