Common String Methods
Explore upper, lower, strip, split, replace, and find methods.
Introduction
Python strings have dozens of built-in methods for searching, transforming, and validating text.
upper() and lower()
'hello'.upper() gives 'HELLO'. 'WORLD'.lower() gives 'world'. Neither modifies the original — they return new strings.
print('hello'.upper())
print('WORLD'.lower())