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

I am getting EOFERROR

a1 = input("enter name 1: ") a2 = input("enter name 2: ") a3 = input("enter name 3: ") a4 = input("enter name 4: ") alist = [a1, a2, a3, a4] print(alist)

16th Nov 2020, 5:27 AM
Amit Mondal
Amit Mondal - avatar
4 Answers
+ 3
In the playground when you click run an input dialog pops up. You need to enter ALL inputs for the entire duration of your programs runtime in this dialog. Place each separate input on a new line like; Adam John Sam Sally Then click submit
16th Nov 2020, 5:49 AM
ChaoticDawg
ChaoticDawg - avatar
+ 2
On sololearn you can provide input only at start, so with your program you should provide 4 lines of input at start (similar to how it would go with input redirected to a file)
16th Nov 2020, 5:49 AM
Volodymyr Chelnokov
Volodymyr Chelnokov - avatar
+ 2
Thank you everyone for helping me out
16th Nov 2020, 6:36 AM
Amit Mondal
Amit Mondal - avatar