lundi 20 mai 2019

How to check for more than two conditions in a single if statement

I'm making a break timer for smoke breaks and I cannot get this if statement to evaluate to true

I've tried leaving it out of the previous if statement I've also tried using parenthesis

    if seconds <= 0 and minutes <= 0 and hours <= 0:
        print("Break Time!")
        hours = 0
        seconds = 0
        minutes = 0
        break

I expect the output to evaluate to true, but the actual output is false

Aucun commentaire:

Enregistrer un commentaire