samedi 31 octobre 2020

Noobie* calculate checksum of 4 digit Number

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