write a python program to check whether a string contains all digits code example
Example: python how to check if string contains only numbers
print("012345".isdecimal())
OUTPUT
True
print("a12345".isdecimal())
OUTPUT
False
print("012345".isdecimal())
OUTPUT
True
print("a12345".isdecimal())
OUTPUT
False