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
Post a Comment