Look carefully at what happens to the result of .upper().
.upper()
name = "pip" name.upper() print(name)
PIP
Pip
pip
None