uppercase lowercase in python code example
Example 1: python to uppercase
text = "Random String"
text = text.upper() #Can also do
text = upper(text)
print(text)
>> "RANDOM STRING"
Example 2: 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))