+ 2
I'm getting an EOFerror and don't know how to fix it....
sibs = int(input()) pops = int(input()) if popsicles%siblings==2: print("give away") else: print("eat them yourself")
5 ответов
+ 11
Bhumika Kanwar
There is a Name error because popsicles and siblings variables are not defined.
Replace `popsicles` to `pops` and `siblings` to `sibs` in your code and run again.
Also there is an extra space before if statement that will cause indentation error.
+ 6
Bhumika Kanwar ,
the *EOFError* may be caused by the input procedure of the sololearn playground.
> all input data are required to be done upfront in a popup window, for each input in a separate line.
then press submit.
+ 4
Gulshan Mahawar
🤦🏻 thankyou dude,idk why I wasn't able to see that 😅
+ 4
First 2 lines are "sibs" and "pops" but then you wrote "siblings" instead of "sibs" and "popsicles" instead of "pops", so it's undefined
and the EOFError is probably because Sololearn playground input procedure, like Lothar have said
+ 2
Lothar
Thanku