0
WHAT'S EOF(ERROR)? WHATEVER IT'S COMING UP FOR I DON'T LIKE IT!!!
7 ответов
+ 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 ?
+ 2
You made an error in the syntax, show your code so people can help you.
+ 1
Can you show the error ? Just the line ?
+ 1
It's working!!!
Thanks
+ 1
Glad it did :D
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(":")
0
user_input=input(":")
EOFError: EOF when reading a line