texto = "12345" print(texto.isdigit()) # Saída: True texto2 = "12345a" print(texto2.isdigit()) # Saída: False