Errors! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Errors!

Guys in python to receive input from the user u use the input('{something}') function? But when I do it in sololearn it sends me a EOF error

15th Feb 2019, 7:05 PM
Thomas Le Magoariec
Thomas Le Magoariec - avatar
6 Answers
+ 1
It looks like you're running an infinite loop, so implement the exit command to exit the program, because it keeps on running forever until CTRL+C is pressed. Then, when you finish, you can do searches then exit. For example: discord youtube exit
15th Feb 2019, 8:30 PM
EoflaOE
EoflaOE - avatar
0
First, you can either do input("{Prompt}") or just input(). Second, did you try writing any input? Finally, can you show us your code to track down this problem?
15th Feb 2019, 8:21 PM
EoflaOE
EoflaOE - avatar
15th Feb 2019, 8:22 PM
Thomas Le Magoariec
Thomas Le Magoariec - avatar
0
I've tried just input() but it doesn't work either
15th Feb 2019, 8:24 PM
Thomas Le Magoariec
Thomas Le Magoariec - avatar
0
It works thx!!!
15th Feb 2019, 8:32 PM
Thomas Le Magoariec
Thomas Le Magoariec - avatar
0
You are welcome
15th Feb 2019, 8:46 PM
EoflaOE
EoflaOE - avatar