dimanche 2 septembre 2018

Python dual condition in if statement

Im trying to satisfy 2 conditions in the if statement with the word AND but it does not seem to be working. is there something wrong? Im basically trying to print the largest of e1,e2 and e3.

if e1 > e2 AND e3: then print elapsed 1 elif: e2>e3 then print e2 else: print e3

Aucun commentaire:

Enregistrer un commentaire