Подскажите пожалуйста как решить проблему!!!EOFEERROR: EOF when reading a line | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Подскажите пожалуйста как решить проблему!!!EOFEERROR: EOF when reading a line

Вот мой код при запуска видает ошибку name = input() sem1_score = int(input()) sem2_score = int(input()) sred = (sem1_score + sem2_score) / 2 if sred >= 90 and sred >=100: print ("50") elif sred >= 80 and sred >=89: print ("30") elif sred >= 70 and sred >= 79: print ("10") elif sred >= 0 and sred >= 69: print ("0") Вот ошибка Traceback (most recent call last): File "/usercode/file0.py", line 3, in <module> sem2_score = int(input()) EOFEERROR: EOF when reading a line

19th Jan 2021, 10:33 PM
Бобурбек Ахмадёнов
Бобурбек Ахмадёнов - avatar
5 Answers
+ 8
See this https://www.sololearn.com/discuss/2670677/?ref=app Also you have to change your conditions like this if sred >= 90 print ("50") elif sred >= 80 and sred <=89: print ("30") elif sred >= 70 and sred <= 79: print ("10") elif sred >= 0 and sred <= 69: print ("0")
20th Jan 2021, 3:36 AM
Simba
Simba - avatar
+ 4
Бобурбек Ахмадёнов enter all your inputs like this Name Score1 Score2
19th Jan 2021, 10:56 PM
Abhay
Abhay - avatar
+ 3
As code playground isn't interactive , you need to provide all the inputs at once . Поскольку площадка для кода не интерактивна, вам нужно предоставить все входные данные сразу.
19th Jan 2021, 10:40 PM
Abhay
Abhay - avatar
+ 2
could you show an example. I'm just starting to learn python! Thanks for the wound earlier
19th Jan 2021, 10:45 PM
Бобурбек Ахмадёнов
Бобурбек Ахмадёнов - avatar
+ 1
sem1_score = int(input()) sem2_score = int(input()) sred = (sem1_score + sem2_score) / 2 if sred >= 90 and sred <=100: print ("50") elif sred >= 80 and sred <=89: print ("30") elif sred >= 70 and sred <= 79: print ("10") elif sred >= 0 and sred <= 69: print ("0") Вот что помогло всем спасибо)
20th Jan 2021, 11:25 AM
Бобурбек Ахмадёнов
Бобурбек Ахмадёнов - avatar