Answers for "isdigit in python"

2

isdigit in python

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

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

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

python isdigit

txt = "50800"

x = txt.isdigit()

print(x)
Posted by: Guest on October-01-2020

Python Answers by Framework

Browse Popular Code Answers by Language