lundi 19 octobre 2020

is there a way for me to address words to put into my if else statement? [duplicate]

So at the bottom I have part of my code here and for the top 2 lines I want if the person answers any letters or words it will print: sorry you cant do that.

what do I have to do for that?

numer_user_type_in = int(float(input(" Ok now please type in the numerator here: ")))
denom_user_type_in = int(float(input(" And the denominator here: ")))
answer = ( numer_user_type_in / denom_user_type_in)

Aucun commentaire:

Enregistrer un commentaire