Python has a set of built-in methods that you can use on strings.
Upper Case
Example
The upper()
method returns the string in upper case:
a = "Hello, World!"
print(a.upper())
Lower Case
Example
The lower()
method returns the string in lower case:
a = "Hello, World!"
print(a.lower())