Multiple statements found error in python for a user input function -


i'm using book "python in easy steps" mike mcrath,and i'm having issue user input project. keep getting error "multiple statements found while compiling single statement".

user = input('hello, name hal. name?:')  print( ' nice meet you',user) 

i'm using 3.4.3 version of idle shell test code.

you need execute them 1 one :

user = input('hello, name hal. name?:') 

it ask input , then:

print( ' nice meet you',user) 

or create python script (.py) , terminal exexute:

python filename.py 

Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Using jquery append to add option values into a select element not working -

javascript - Restarting Supervisor and effect on FlaskSocketIO -