Unknown error!?! | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Unknown error!?!

I never see this error before :( traceback (most recent call last): File "file0.py", line 2, in <module> var=float(input()) EOFError: EOF when reading a line Fix for me pleasešŸ˜±šŸ˜±šŸ˜±

25th Aug 2021, 1:19 PM
Nį»‘ Nį»“ NĆ“ Ɣk
8 Respostas
+ 3
Nį»‘ Nį»“ NĆ“ Ɣk In Sololearn you have to take multiple inputs together with separate lines. Error comes because of that. If you have taken 2 inputs then you have to enter 2 inputs. For multiple inputs you have to multiple inputs.
25th Aug 2021, 3:09 PM
AĶ¢J
AĶ¢J - avatar
+ 4
Nį»‘ Nį»“ NĆ“ Ɣk The error accurs when the code only gets one input. It requires two to run, so if it only gets one number it will throw an error
25th Aug 2021, 1:35 PM
Brain & Bones
Brain & Bones - avatar
+ 3
We need to see the code to be able to help you
25th Aug 2021, 1:27 PM
Brain & Bones
Brain & Bones - avatar
25th Aug 2021, 1:32 PM
Nį»‘ Nį»“ NĆ“ Ɣk
+ 2
Actually her code has no error. An error is displaying be.coz of sololearn input format. You have to put 2 inputs for weight and height simultaneously Eg- 50 ( click enter for next line) 150 and then hit submit button Just putting only one input at a time might show you EOF...
25th Aug 2021, 4:29 PM
Myo Thuzar
Myo Thuzar - avatar
+ 1
Thanks for your helps :)
25th Aug 2021, 11:47 PM
Nį»‘ Nį»“ NĆ“ Ɣk
0
Brain & Bones I filled the first input and the error display
25th Aug 2021, 1:37 PM
Nį»‘ Nį»“ NĆ“ Ɣk
- 1
I no nothing i want finish
27th Aug 2021, 2:46 AM
Saovanee Stepple