- 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

4th Aug 2017, 2:48 AM
Nitin G Dagaya
Nitin G Dagaya - avatar
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')
4th Aug 2017, 6:52 AM
visph
visph - avatar
+ 3
@@ Your code doesn't produce any error in my QPython3, but does in my QPython2 (installed on two different devices to avoid conflict) ^^
4th Aug 2017, 7:56 AM
visph
visph - avatar
4th Aug 2017, 2:53 AM
OrbitHv [Inactive]
OrbitHv [Inactive] - avatar
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
4th Aug 2017, 3:33 AM
Nitin G Dagaya
Nitin G Dagaya - avatar
- 1
Yes I use qpython 3 and having issue in reading input from user
4th Aug 2017, 7:52 AM
Nitin G Dagaya
Nitin G Dagaya - avatar