+ 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?
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.
+ 1
I see! Alright Thanks man!
0
Aamuel Chua You 're welcome!