a = "03523" print(a.isdigit()) # Saída: True b = "963spam" print(b.isdigit()) # Saída: False