Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b95ce84

Browse files
Answer
1 parent de0833c commit b95ce84

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎String's/String Validators.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
st = input()
2-
32
print(any(ch.isalnum() for ch in st))
43
print(any(ch.isalpha() for ch in st))
54
print(any(ch.isdigit() for ch in st))
65
print(any(ch.islower() for ch in st))
76
print(any(ch.isupper() for ch in st))
87

9-
108
# Any
119
# Returns true if any of the items is True. It returns False
1210
# if empty or all are false. Any can be thought of as a sequence
1311
# of OR operations on the provided iterables.
1412
# It short circuit the execution i.e. stop the execution as soon
1513
# as the result is known.
1614

17-
# Syntax : any(list of iterables)
15+
# Syntax : any(list of iterables)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /