+ 1

Ian facing an elf error in line three what to do to solve this

name = input() sem1 = int(input()) sem2= int(input())# this line shows error how to solve it #your code goes here avg = (sem1+sem2)/2 if (avg>=0 and avg<=69): print(0) elif (avg>=70 and avg<=79): print(10) elif (avg>=80 and avg<=89): print(30) elif (avg>=90 and avg<=100): print(50)

22nd Sep 2020, 5:47 AM
Joel Joseph
2 Réponses
+ 12
Give input like this Name 100 200 Not like this in one line Name 100 200 --> it's wrong way Beacuse in Sololearn you give input line by line
22nd Sep 2020, 5:59 AM
Prachi The Pari ⭐
Prachi The Pari ⭐ - avatar
+ 4
There is no error please note the code require 3 input, you should enter them at the start separated by new line try this input Name 50 90
22nd Sep 2020, 5:52 AM
Ruba Kh
Ruba Kh - avatar