Eof when reading the line. –ü–ĺ–ľ–ĺ–≥–ł—ā–Ķ –Ņ–Ľ–ł–∑! | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Eof when reading the line. –ü–ĺ–ľ–ĺ–≥–ł—ā–Ķ –Ņ–Ľ–ł–∑!

–í –Ņ—Ä–į–ļ—ā–ł—á–Ķ—Ā–ļ–ĺ–ľ –∑–į–ī–į–Ĺ–ł–ł —Ā–ĺ —Ā–ļ–ł–ī–ļ–ĺ–Ļ –Ĺ–į —É—á–Ķ–Ī—É –Ņ—Ä–ĺ–≥–į –≤—č–ī–į–Ķ—ā –ĺ—ą–ł–Ī–ļ—É Eof –Ĺ–į –ł–∑–Ĺ–į—á–į–Ľ—Ć–Ĺ–ĺ –Ĺ–į–Ņ–ł—Ā–į–Ĺ–Ĺ—É—é —Ā—ā—Ä–ĺ–ļ—É –ļ–ĺ–ī–į, –≤ –ļ–ĺ—ā–ĺ—Ä—É—é –≤–≤–ĺ–ī—Ź—ā—Ā—Ź –ī–į–Ĺ–Ĺ—č–Ķ. –Ě—É–∂–Ĺ–ĺ —Ä–į—Ā—á–ł—ā–į—ā—Ć —Ā–ļ–ł–ī–ļ—É –Ĺ–į –ĺ–Ī—É—á–Ķ–Ĺ–ł–Ķ, –ł—Ā—Ö–ĺ–ī—Ź –ł–∑ —Ā—Ä–Ķ–ī–Ĺ–Ķ–≥–ĺ –į—Ä–ł—Ą–ľ–Ķ—ā–ł—á–Ķ—Ā–ļ–ĺ–≥–ĺ –ľ–Ķ–∂–ī—É –ī–≤—É–ľ—Ź —Ā–Ķ—Ā—ā—Ä–į–ľ–ł. –ö–ĺ–ī –≤—č–≥–Ľ—Ź–ī–ł—ā —ā–į–ļ: name = input() sem1_score = int(input()) sem2_score = int(input()) # –ľ–Ķ—Ā—ā–ĺ –ī–Ľ—Ź –≤–į—ą–Ķ–≥–ĺ –ļ–ĺ–ī–į if (int(sem1_score) + int(sem2_score) / 2 >= 90 and int(sem1_score) + int(sem2_score) / 2 <= 100): print("50") elif (int(sem1_score) + int(sem2_score) / 2 >= 80 and int(sem1_score) + int(sem2_score) / 2 <= 89): print ("30") elif (int(sem1_score) + int(sem2_score) / 2 >= 70 and int(sem1_score) + int(sem2_score) / 2 <= 79 ): print ("10") else : print ("0")

19th Jan 2021, 1:23 PM
–Ě–ł–ļ–ł—ā–į –ü–Ķ—ā—Ä–ł–ļ
–Ě–ł–ļ–ł—ā–į –ü–Ķ—ā—Ä–ł–ļ - avatar
6 Réponses
+ 8
It's working fine. Your inputs need to be –Ě–ł–ļ–ł—ā–į –ü–Ķ—ā—Ä–ł–ļ (Press Enter) 100 (Press Enter) 100 #output 50 Take a look at this lesson https://www.sololearn.com/post/664632/?ref=app
19th Jan 2021, 2:01 PM
Simba
Simba - avatar
+ 9
You can use range function instead of and operator. Also you have to close the parenthesis like this if (int(sem1_score) + int(sem2_score)) / 2 >= 90 and (int(sem1_score) + int(sem2_score)) / 2 <= 100: print("50") #your code https://code.sololearn.com/c8XCvvK9p028/?ref=app
19th Jan 2021, 1:41 PM
Simba
Simba - avatar
+ 1
Ty. I'll try it.
19th Jan 2021, 1:42 PM
–Ě–ł–ļ–ł—ā–į –ü–Ķ—ā—Ä–ł–ļ
–Ě–ł–ļ–ł—ā–į –ü–Ķ—ā—Ä–ł–ļ - avatar
0
I am not getting any eof errors but various other errors but you need to enter input as follow if it's an eof error. Name Score1 Score2 –Į –Ĺ–Ķ –Ņ–ĺ–Ľ—É—á–į—é –Ĺ–ł–ļ–į–ļ–ł—Ö –ĺ—ą–ł–Ī–ĺ–ļ eof, –Ĺ–ĺ –Ņ–ĺ–Ľ—É—á–į—é —Ä–į–∑–Ľ–ł—á–Ĺ—č–Ķ –ī—Ä—É–≥–ł–Ķ –ĺ—ą–ł–Ī–ļ–ł, –Ĺ–ĺ –≤–į–ľ –Ĺ—É–∂–Ĺ–ĺ –≤–≤–Ķ—Ā—ā–ł –≤–≤–ĺ–ī, –ļ–į–ļ –Ņ–ĺ–ļ–į–∑–į–Ĺ–ĺ –Ĺ–ł–∂–Ķ, –Ķ—Ā–Ľ–ł —ć—ā–ĺ –ĺ—ą–ł–Ī–ļ–į eof. –ł–ľ—Ź –ě—Ü–Ķ–Ĺ–ļ–į1 –ě—Ü–Ķ–Ĺ–ļ–į2
19th Jan 2021, 1:34 PM
Abhay
Abhay - avatar
0
I think that i'm understand. I'l try it. Thank you so much!)
19th Jan 2021, 1:35 PM
–Ě–ł–ļ–ł—ā–į –ü–Ķ—ā—Ä–ł–ļ
–Ě–ł–ļ–ł—ā–į –ü–Ķ—ā—Ä–ł–ļ - avatar
0
Pls, run your own code. It shows the same EOF!
19th Jan 2021, 1:47 PM
–Ě–ł–ļ–ł—ā–į –ü–Ķ—ā—Ä–ł–ļ
–Ě–ł–ļ–ł—ā–į –ü–Ķ—ā—Ä–ł–ļ - avatar