Glossary

return a new string

they don't modify the original. Strings in Python are **immutable**: once created, they cannot be changed. If you want the uppercase version, you need to save it: > > ```python > city = "Minneapolis" > city_upper = city.upper() > print(city_upper) # "MINNEAPOLIS" > ``` > > Or reassign: > > ```python

Learn More

Related Terms