+ 1

How do you use a Input function for Python

I have realised that when i tried to use the input() in python, this app will prompt for a input but the text i specify is not written. When I leave the input blank, I’ll get a EOFError. E.g. x = input(“Any number: “) print(x) y = input(“Any Number: “) print(y) #I’ll only get one prompt to key in my number. Not two. After which, I’ll get a EOFError. Is this like some sort of feature in this application that is not usable?

19th Jan 2019, 4:33 PM
Aamuel Chua
Aamuel Chua - avatar
3 Answers
+ 3
This is a problem of Sololearn: the prompt text does not appear. Also, you have to enter all your inputs together, placing each one on a new line. The EOFError is raised because the 2nd input does not receive a value.
19th Jan 2019, 4:44 PM
giannismach
giannismach - avatar
+ 1
I see! Alright Thanks man!
19th Jan 2019, 4:47 PM
Aamuel Chua
Aamuel Chua - avatar
0
Aamuel Chua You 're welcome!
19th Jan 2019, 5:16 PM
giannismach
giannismach - avatar