We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de0833c commit b95ce84Copy full SHA for b95ce84
String's/String Validators.py
@@ -1,17 +1,15 @@
1
st = input()
2
-
3
print(any(ch.isalnum() for ch in st))
4
print(any(ch.isalpha() for ch in st))
5
print(any(ch.isdigit() for ch in st))
6
print(any(ch.islower() for ch in st))
7
print(any(ch.isupper() for ch in st))
8
9
10
# Any
11
# Returns true if any of the items is True. It returns False
12
# if empty or all are false. Any can be thought of as a sequence
13
# of OR operations on the provided iterables.
14
# It short circuit the execution i.e. stop the execution as soon
15
# as the result is known.
16
17
-# Syntax : any(list of iterables)
+# Syntax : any(list of iterables)
0 commit comments