Question 1 of 5
The code runs
name.upper() alone, with
name = "fox". What happens to
name?
Strings do not change, the section is called.
name.upper() returns a new string and leaves name exactly as it was, so without an assignment the result evaporates. It is the same immutability every string method shares.
Review this lesson