- 1
Guys need your help: Not able to have two input functions in same program.
~{code playground}~ name=input('your name') print (name) age=input('your age') print (age) error: EOFError
5 Answers
+ 3
You probably use QPython rather than QPython3, so as for Python2.7, you need to use raw_input() function to get input from user:
name = raw_input('your name')
+ 3
@@
Your code doesn't produce any error in my QPython3, but does in my QPython2 (installed on two different devices to avoid conflict) ^^
0
thanks that was helpful
I tried in qpython to read input from user it generates error:
name=input ('your name')
error: name 'input from user' is not defined
- 1
Yes I use qpython 3 and having issue in reading input from user