- 3

Stx

How can I fix EOF error

12th Jun 2020, 4:45 PM
Darius11
Darius11 - avatar
10 Answers
+ 2
EOF=end of file error. mostly happen when you forget to provide proper input. Share your code.
12th Jun 2020, 4:47 PM
Maninder $ingh
Maninder $ingh - avatar
+ 2
Or you you don't close a statement with parenthesis
12th Jun 2020, 4:57 PM
Abhay
Abhay - avatar
+ 2
There is no code to share you must enter two values at the input prompt each on its own line. The input function reads the entire line. Since you used two, you must provide two lines as an answer to the prompt. Each must be valid to the float function. Your prompts do not get seen here, until after the program completes, because of the way SoloLearn runs your code remotely.
13th Jun 2020, 11:10 PM
John Wells
John Wells - avatar
+ 1
Share your code here.
12th Jun 2020, 4:59 PM
Maninder $ingh
Maninder $ingh - avatar
+ 1
Input give like this. 2.3 #hit enter next input in next line 3.5 And then again hit enter.
12th Jun 2020, 5:03 PM
Maninder $ingh
Maninder $ingh - avatar
0
How can I provide a proper input??
12th Jun 2020, 4:58 PM
Darius11
Darius11 - avatar
0
My code look like this num1=float(input("enter a number")) num2=float(input("enter another number"))
12th Jun 2020, 5:00 PM
Darius11
Darius11 - avatar
0
Can I fix it
12th Jun 2020, 5:01 PM
Darius11
Darius11 - avatar
0
It's a simple calculator from the courses of python . At control stuctures I found this project , I folowed the instructions , but this problem occured
12th Jun 2020, 5:03 PM
Darius11
Darius11 - avatar
0
I don't know how to do ?? Can you share your code that will help me here ???
12th Jun 2020, 5:05 PM
Darius11
Darius11 - avatar