def main():
word=raw_input()
count_upper,count_lower,count_digit,count_other=0,0,0,0
for i in word:
if i.islower()==True:
count_lower+=1
elif i.isupper()==True:
count_upper+=1
elif i.isdigit()==True:
count_digit+=1
else:count_other+=1
print "No of Uppercase:",count_upper
print "No of Lowercase:",count_lower
print "No of Digits:",count_digit
print "No of Special case:",count_other
if __name__=='__main__':
main()
Input:
GOKulkann124$%
Output:
No of Uppercase: 3
No of Lowercase: 6
No of Digits: 3
No of Special case: 2
0 comments:
Post a Comment