diff --git a/String/10820.py b/String/10820.py new file mode 100644 index 0000000..ead8128 --- /dev/null +++ b/String/10820.py @@ -0,0 +1,25 @@ +import sys + +while (True): + try: + word = input() + + small = 0 + big = 0 + num = 0 + space = 0 + + for i in word: + if (i.isalpha()): + if (97 <= ord(i) <= 122): + small += 1 + else: + big += 1 + elif (i.isdigit()): + num += 1 + else: + space += 1 + + print(small, big, num, space) + except: + sys.exit()