practicepython.in
python exercises
171 exercises

Daily #14 · 12 October 2026

Shouting, quietly Easy

What does this print?

name = "ada"
name.upper()
print(name)
  1. AAda
  2. Bada
  3. CADA
  4. DNone
Show the answer

B: ada

Why: Strings cannot be changed. upper() returns a new string, and this code throws it away. name = name.upper() keeps it.

Play today’s puzzle →