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.

23rd Apr 2019, 11:58 PM
Nathan
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.
24th Apr 2019, 12:06 AM
Diego
Diego - avatar
+ 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
24th Apr 2019, 12:06 AM
BroFar
BroFar - avatar