-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy path14.py
More file actions
34 lines (34 loc) · 684 Bytes
/
14.py
File metadata and controls
34 lines (34 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
if __name__ == '__main__':
s = input()
f1,f2,f3,f4,f5=0,0,0,0,0
for ch in s:
if ch.isalnum()==True:
f1+=1
if ch.isalpha()==True:
f2+=1
if ch.isdigit()==True:
f3+=1
if ch.islower()==True:
f4+=1
if ch.isupper()==True:
f5+=1
if f1>0:
print('True')
else:
print('False')
if f2>0:
print('True')
else:
print('False')
if f3>0:
print('True')
else:
print('False')
if f4>0:
print('True')
else:
print('False')
if f5>0:
print('True')
else:
print('False')