DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python check if number in string
s = "abc1" contains_digit = any(map(str.isdigit, s)) print(contains_digit)
Source by www.kite.com #
PREVIOUS
NEXT
Tagged:
#python
#check
#number
#string
ADD COMMENT
Topic
COMMENT
Name
9+6 =
Submit