python 3.9 to uppercase code example
Example 1: how do you change a string to only uppercase in python
original = Hello, World!
#both of these work
upper = original.upper()
upper = upper(original)
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))