im using a python book and I copied the code but it says, multiple statements found while compiling a single statement don't know what's wrong -
name = input("hi. what's name? ") print("name") print("hi,", name) input("\n\npress enter key exit.")
it says multiple statements found while compiling single statement
i'm using book , tried many different things. also, i'm noob @ can tell. if have suggestions that'll great
your code fine, assuming using python 3, need type (or paste) each line, 1 @ time. based on seeing, suspect putting in @ once, without new line after each line.
if using python 2, you'll need use raw_input
rather input, this:
name = raw_input("hi. what's name? ") print("name") print("hi,", name) input("\n\npress enter key exit.")
Comments
Post a Comment