What is EOF error? And how to solve it | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
2nd Aug 2023, 1:40 PM
It's AK
It's AK - avatar
2 Réponses
+ 2
Separate your inputs values into multi lines Suppose you have this sinole code a=input() b=input() print('hello',a,b) As you have multiple inputs, you must insert your inputs into multi lines, then sololearn app will assign the content of the first line as value of a and the content of the second line as value if b and so on So EOF occured 2hen your program use multiple.input statements As editor is not pausing code execution when the input dialog is shown, so when dialog is displayed and in the same time code continue execution and encounter another input statement, then in this case EOF is occured
2nd Aug 2023, 2:03 PM
mouhammad Zein Eddine
mouhammad Zein Eddine - avatar