count
Python
x = '@pyThOnlobb!Y34'
count = count1 = count2 = count3 = 0
for i in x:
if i.islower():
count += 1
print('lower counts', count)
for i in x:
if i.isupper():
count1 += 1
print('upper counts', count1)
for i in x:
if i.isdigit():
count2+= 1
print('special counts', count2)
for i in x:
if i.isdigit():
count3 += 1
print('numeric counts', count3)
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.