Lesson 7: Text Manipulation

Words (strings) can be modified. We can transform them to uppercase, lowercase or replace letters.

String Methods

Strings have "superpowers" called methods.

text = "Hi" print(text.upper()) # HI print(text.lower()) # hi

Your Objective

Fix the messy text.

main.py
Initializing Python Environment...