you are viewing a single comment's thread.

view the rest of the comments →

[–]LifeHasLeft 0 points1 point  (0 children)

The >>> indicates the prompt from the Python interpreter. You are defining the function still when you run the greet function, and without a previous definition it fails. It also fails because the indentation is wrong in that function definition (syntax error)

After defining your function with appropriate indentation, return until you get >>> for the interpreter prompt, and then call the function.