Knowledge organisersString Manipulation
UPPER lower Title.
String methods .upper(), .lower(), and .title() return new strings with changed case. The original string is not modified. Useful for case-insensitive comparisons.
.upper() converts to UPPERCASE.lower() converts to lowercase.title() capitalises first letter of each word.lower() for case-insensitive comparisonname = "alice smith"
print(name.upper()) # ALICE SMITH
print(name.title()) # Alice Smith
answer = input("Yes/No: ")
if answer.lower() == "yes":
print("Confirmed")