mardi 5 février 2019

Python print statement not showing up in If in range statement

I have looked online on how to write a if in range statement in python and I am confused why my print statement is not showing up.

print("Hello User What Is The Wind Chill Today?")
windChill = int(input())

if windChill <= -25:
    print("No School!!!")

if windChill >= 0:
    print("Theres School ):")

if int(windChill) in range(-1, -24):
    print("Maybe school")

The expected result is that if I put in the input -20 it will say "Maybe school" but right now it is not showing the print statement when I put in a number through -1 to -24.

Aucun commentaire:

Enregistrer un commentaire