Slip 25 Q 1
CODE :
string=input('enter a string : ')
up=low=ele=0
for x in string:
if x.isupper():
up+=1
elif x.islower():
low+=1
else:
ele+=1
print('No. of Upper case characters : ',up)
print('No. of Lower case characters : ',low)
print('other special symbols',ele)
No comments:
Post a Comment