if (newdistance<=0) and (speedlost>20) or (97 < corrected < 80):
print("YOU HAVE CRASHED, MISSION FAILED")
I am trying to have an if-statement condition along the lines of x less-than y less-than z, it is seen here as (97 < corrected < 80).
Is there a more efficient way to write this? (Or even an more efficient way to write this if-statement all together)
Aucun commentaire:
Enregistrer un commentaire