Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def string_test(s):
- d = {"UPPER_CASE": 0, "LOWER_CASE": 0}
- for c in s:
- if c.isupper():
- d["UPPER_CASE"] += 1
- elif c.islower():
- d["LOWER_CASE"] += 1
- else:
- pass
- print(d["UPPER_CASE"] , d["LOWER_CASE"])
- string_test(str(input()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement