how to change uppercase to lowercase in python code example
Example 1: python to uppercase
text = "Random String"
text = text.upper()
text = upper(text)
print(text)
>> "RANDOM STRING"
Example 2: how do you change a string to only uppercase in python
original = Hello, World!
upper = original.upper()
upper = upper(original)
Example 3: python 3 calculate uppercase lowercase letter
world = input()
upper,lower = 0,0
for i in world:
upper+=i.isupper()
lower+=i.islower()
print("UPPER CASE {0}\nLOWER CASE {1}".format(upper,lower))