0

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
analog_kid
  • 13
  • 3

1 Answers1

0

you need to say

if e1 > e2 and e1 > e3:
    print(e1)
elif e2 > e3:
    print(e2)
else:
    print(e3)

then it will work.

Cut7er
  • 1,209
  • 9
  • 24