I’m new to python (and coding as a whole), and I’m making a time left in class thing. First I’m using datetime to get the weekday, but I went ahead and tested some other days. Other numbers aren’t working as well.
weekDay = 1
if weekDay >= 0 and weekDay <=.4:
if weekDay == 0 or 4:
print("Mon/Fri Schedule")
elif weekDay == 1 or 3:
print( "Tues/Thur Schedule")
elif weekDay == 2:
print("Wed Schedule")
else:
print ("There's no school ye goof”)
After running weekDay set to 1, it returns “Mon/Fri Schedule” instead of “Tues/Thur schedule”
Is my syntax wrong?