-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpy58.py
More file actions
23 lines (23 loc) · 680 Bytes
/
py58.py
File metadata and controls
23 lines (23 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#any(iterable) yields True if at least one element within the iterable is evaluated as true and False otherwise
if __name__ == '__main__':
s = input()
if (any(i.isalnum() for i in s))==True: #if any of i(element) is true
print("True")
else:
print("False")
if (any(i.isalpha() for i in s))==True:
print("True")
else:
print("False")
if (any(i.isdigit() for i in s))==True:
print("True")
else:
print("False")
if (any(i.islower() for i in s))==True:
print("True")
else:
print("False")
if (any(i.islower() for i in s))==True:
print("True")
else:
print("False")