Search
 
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
Name
9+6 =