Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check if number contains digit

for number in numbers:
    if '4' in str(number):
        print('{} True'.format(number))
    else:
        print("False")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #check #number #digit
ADD COMMENT
Topic
Name
6+7 =