Note 15.3.1.
We always do all the work on the right side of
=
and then store the result in the variable listed on the left side.sentence
hasn’t changed.sentence
be the result of changing the old value of sentence
after it was changed to lowercase.=
and then store the result in the variable listed on the left side.s1 = "xy"
s2 = s1
s1 = s1 + s2 + "z"
s1 = "HEY"
s2 = s1.lower()
s3 = s2.capitalize()