+ 2

What is the problem with this code?

eof error i dont know https://code.sololearn.com/c4vRnnSDRnpv/?ref=app

10th Jan 2018, 4:05 PM
Diego Andres Cabrera Rojas
Diego Andres Cabrera Rojas - avatar
5 Answers
+ 1
What dev is trying to say is when you run this program in the SoloLearn Python 3 interpreter, it will open a window for user input. In that window you must type in your 6 different inputs on 6 separate lines. Then press submit
10th Jan 2018, 4:34 PM
Da Cube
Da Cube - avatar
+ 8
The problem is with the input. If you're instead giving less than 6 inputs, it gives an eof error. input1 input2 input3 ... ... input6 Remember to split more than one input into different lines.
10th Jan 2018, 4:17 PM
Dev
Dev - avatar
+ 2
thanks but i dont know how do this
10th Jan 2018, 4:29 PM
Diego Andres Cabrera Rojas
Diego Andres Cabrera Rojas - avatar
+ 2
oh thanks , is right
10th Jan 2018, 5:08 PM
Diego Andres Cabrera Rojas
Diego Andres Cabrera Rojas - avatar
- 1
Haha I once had a similar problem coming from java. Instead of using a “+” to add variables and strings together, use a “,”. Example: spam = 1 eggs = 2 print(“Hello!”, spam, eggs)
10th Jan 2018, 4:10 PM
Da Cube
Da Cube - avatar