practicepython.in
python exercises
171 exercises

Daily #34 · 1 November 2026

The biggest number Medium

What does this print?

print(max("10", "9", "100"))
  1. A100
  2. Braises TypeError
  3. C9
  4. D10
Show the answer

C: 9

Why: These are strings, so they are compared letter by letter, like words in a dictionary. "9" beats "1..." on the first character. Convert first: max("10", "9", "100", key=int).

Play today’s puzzle →