demo_ref_string_isdigit.py:
txt = "50800" x = txt.isdigit() print(x)
C:\Users\My Name>python demo_string_isdigit.py
True