def seperate(word):
big = 0;small = 0
for c in word:
if 65<=ord(c)<=90:
big += 1
elif 97<=ord(c)<=122:
small += 1
else:
continue
return (big,small)
word = input()
print(seperate(word))
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)