eof error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

eof error

error when in phython try it yourself but no error when using python playground name = input() sem1_score = int(input()) sem2_score = int(input()) #your code goes here average = (sem1_score + sem2_score) / 2 if average <= 69: print(0) elif average >= 70 and average <= 79: print(10) elif average >= 80 and average <= 89: print(30) else: print(50)

17th Aug 2020, 11:29 AM
Shuarma
Shuarma - avatar
3 Answers
+ 2
nvm i figured it out, for some reason there was a name input pre coded even though it wasn't really needed. So the one the two inputs was placed in the name input. ~ swim ~ thank you so much for giving me the info needed! I appreciate it a lot
20th Aug 2020, 5:19 PM
Shuarma
Shuarma - avatar
+ 1
I still don't understand why it didn't work but thank you it was very informative
17th Aug 2020, 4:47 PM
Shuarma
Shuarma - avatar
+ 1
I mean I understand that it's different when in sololearn but I hoped to know more about the eof error when using the practice what you learned option because the code works fine on playground but when in practice what you learned it gives errors and the thing even more confusing is that the practice what you learned already had them pre coded
20th Aug 2020, 5:15 PM
Shuarma
Shuarma - avatar