+ 2

Hello i am getting EOF ERROR how to solver it

https://code.sololearn.com/cOMPLrTDViOm/?ref=app

31st Dec 2018, 6:47 AM
praveen
praveen - avatar
13 Réponses
+ 3
Change line 3 for this: t -= 1
31st Dec 2018, 7:00 AM
Diego
Diego - avatar
+ 6
That program require t+1 inputs. Example: If your first input is "3", you have to input 2 more numbers. Like this: 5 3 3 3 3 3
31st Dec 2018, 6:59 AM
InvBoy [ :: FEDE :: ]
InvBoy [ :: FEDE :: ] - avatar
+ 3
gabe.c423 your code work. It require 4 inputs
31st Dec 2018, 5:45 PM
InvBoy [ :: FEDE :: ]
InvBoy [ :: FEDE :: ] - avatar
+ 3
InvBoy it's a limitation of the SL Code Playground. All the inputs have to be entered at once and the input prompts are all displayed at the same time when the code is run :\
31st Dec 2018, 8:56 PM
David Ashton
David Ashton - avatar
+ 2
If you want to shorten your code, you can replace lines 5, 6 and 7 with the comprehension n = sum(int(digit) for digit in number). Also, you don't need the quotes in an empty input - i.e. just use input() instead of input('') :)
31st Dec 2018, 9:37 AM
David Ashton
David Ashton - avatar
+ 2
When running the code you will see a dialog where you must put the inputs, each line is a different input. For example, enter this: InvBoy 17 100 150
31st Dec 2018, 6:02 PM
InvBoy [ :: FEDE :: ]
InvBoy [ :: FEDE :: ] - avatar
+ 2
No, remember the order of inputs in the code
31st Dec 2018, 6:57 PM
InvBoy [ :: FEDE :: ]
InvBoy [ :: FEDE :: ] - avatar
+ 2
David Ashton Yes, i know
31st Dec 2018, 8:57 PM
InvBoy [ :: FEDE :: ]
InvBoy [ :: FEDE :: ] - avatar
+ 1
Having same issue
31st Dec 2018, 5:36 PM
gabe.c423
gabe.c423 - avatar
31st Dec 2018, 5:36 PM
gabe.c423
gabe.c423 - avatar
+ 1
my code works on python but not solo learn with the same error can any one help?
31st Dec 2018, 5:37 PM
gabe.c423
gabe.c423 - avatar
+ 1
InvBoy so how do i input it comes up with a weird message?
31st Dec 2018, 5:48 PM
gabe.c423
gabe.c423 - avatar
+ 1
InvBoy but it dosnt tell me which input it is
31st Dec 2018, 6:20 PM
gabe.c423
gabe.c423 - avatar