Answers for ".isdigit"

2

.isdigit

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

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

# Output: True
#         False
Posted by: Guest on February-23-2022

Python Answers by Framework

Browse Popular Code Answers by Language