Module 4
upper() and lower()
Changing the case of text.
Changing case
The upper() method converts all characters to uppercase. The lower() method converts them to lowercase.
Python
name = "AtGc" print(name.upper()) print(name.lower())
→ ATGC
atgc
Your task
Change case
- Convert AtGc to uppercase.