0
Need help with code
Just trying to make a simple game using only inputs (like a text based adventure game) but Iâm getting EOFError: EOF when reading a line It works fine in idle, just not on here. https://code.sololearn.com/cKCvsqZE8WYH/?ref=app There is my code. I have just started learning python so explain a solution to me like Iâm 3.
2 Answers
+ 1
1 Your while loops are infinite. There's no break statement, so lines 6-11 are repeated infinitely.
2. In SoloLearn's IDE all inputs must be entered at the beginning of the program.
+ 4
Ok first problem is neither bill nor gates has quotes around them ie 'bill' and 'gates' so when I edited both I had to understand that I had to input the name as
bill
gates
Username Correct streamed down the console...
https://code.sololearn.com/cbX40o6EA2rT/?ref=app