Start learning free

LESSON 27 OF 673 · FUNCTIONS I

Defining Functions: Buggy Code in Python

Practice

Inside the code editor we've tried just to define a function (without calling the function) that would print the message Hey, Andy! whenever called.

It seems like we made some mistakes because when we run our code we get a SyntaxError.


Assignment:

Your task is to fix our function definition such that no errors will be produced.

STEP 1 OF 1
    Ctrl + Enter to check