Function Junction


#1

This is my code
1. # Define your spam function starting on line 5. You
2. # can leave the code on line 11 alone for now--we'll
3. # explain it soon!
4.
5.
6.
7.
8.
9.
10. # Define the spam function above this line.
11. def spam(print "Eggs!")
12.
This is the error
Oops, try again. Your syntax looks a bit off. Double check your parentheses and colon!

Can someone tell me the answer because I have been stuck on this code for a month


#2

Never mind I figured it out.


#3

The instruction says to define the spam function on line 5 which is empty now.

You should be doing something like:

def spam():

Hope this helps! :smile:


#5