0

WHAT'S EOF(ERROR)? WHATEVER IT'S COMING UP FOR I DON'T LIKE IT!!!

30th Apr 2019, 1:50 PM
Timothy Priest
7 odpowiedzi
+ 3
As I said, I think that in SoloLearn playground, you cannot have input inside while loop, because it has limits. Try it on a computer with terminal or command line, it should work. EDIT: Can anyone try this on a computer and see if it works ?
30th Apr 2019, 2:23 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
You made an error in the syntax, show your code so people can help you.
30th Apr 2019, 1:53 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
Can you show the error ? Just the line ?
30th Apr 2019, 2:03 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
It's working!!! Thanks
30th Apr 2019, 2:25 PM
Timothy Priest
+ 1
Glad it did :D
30th Apr 2019, 2:26 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
while True: print("Options:") print("Enter 'add' to add two numbers") print("Enter 'subtract' to subtract two numbers") print("Enter 'multiply' to multiply two numbers") print("Enter 'divide' to divide two numbers") print("Enter 'quit' to end the program") user_input = input(":")
30th Apr 2019, 2:02 PM
Timothy Priest
0
user_input=input(":") EOFError: EOF when reading a line
30th Apr 2019, 2:19 PM
Timothy Priest