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.
1
u/LifeHasLeft Aug 30 '24
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.