Muscardinus
문자열 분석 본문
728x90
while 1 :
try:
str=input()
except:
break
str=list(str)
small=0
big=0
num=0
space=0
for check in str:
if check >='a' and check <='z':
small+=1
if check >='A' and check <='Z':
big+=1
if check >='0' and check <='9':
num+=1
if check == ' ':
space+=1
print(small,big,num,space)
728x90
Comments