str1 = '342' print(str1.isdigit()) str2 = 'python' print(str2.isdigit()) # Output: True # False
s='12' s.isdigit()#returns True
my_char.isdigit()
txt = "50800" x = txt.isdigit() print(x)