jeudi 24 juin 2021

Python recognizing 9 as larger than 27 in "if

I'm literally two days into the learning journey so go easy! I'm trying to put together a basic temperature app and everything runs great without errors except when I input single digits. If I input double digits, it correctly registers the right response, as in: "yes, that's too hot" or "yes, that's too cold" but it seems to recognize anything lower than 10 as being greater than 32 and not lower than 27 thus giving a "too warm" response.

Screenshot

Aucun commentaire:

Enregistrer un commentaire