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

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

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -