how to make uppercase in python code example

Example 1: how to change a string to small letter in python

my_str = "Hello World"
my_str.lower()
print(my_str)

Example 2: uppercase string python

string.lower()
string.upper()

Example 3: from uppercase to lowercase python

# By Alan W. Smith and Petar Ivanov
s = "Kilometer"
print(s.lower())

Example 4: python method to check for uppercase character

a="DEMO"
print(a.isupper())

Example 5: python to uppercase

original = Hello, World!

#both of these work
upper = original.upper()
upper = upper(original)