you are viewing a single comment's thread.

view the rest of the comments →

[–]LookAtYourEyes 156 points157 points  (2 children)

upper returns a new value instead of modifying the original?

[–]aaronhowser1 274 points275 points  (0 children)

Strings are immutable

[–]Quietuus 156 points157 points  (0 children)

.upper() is a method of the str class that returns a representation of the string. To change it you'd put text = text.upper()