Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

isdigit in python

str1 = '342'
print(str1.isdigit())

str2 = 'python'
print(str2.isdigit())

# Output: True
#         False
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #isdigit #python
ADD COMMENT
Topic
Name
8+6 =