hey im pretty new to Python. I want to write a little Programm to calculate the Checksum of an 4-Digit Number with an Input() But If u type an 5 or higher digit number there should be an print('error') message. I dont know how to tell the programm to only allow 4 digit number inputs.
Aucun commentaire:
Enregistrer un commentaire