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
5 ответов
+ 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")
+ 4
Бобурбек Ахмадёнов enter all your inputs like this
Name
Score1
Score2
+ 3
As code playground isn't interactive , you need to provide all the inputs at once .
Поскольку площадка для кода не интерактивна, вам нужно предоставить все входные данные сразу.
+ 2
could you show an example. I'm just starting to learn python! Thanks for the wound earlier
+ 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")
Вот что помогло всем спасибо)