2.Function junction I need help


#1

Define your spam function starting on line 5. You

can leave the code on line 11 alone for now--we'll

explain it soon!

Define the spam function above this line.

spam()


#2

Hi Dari,

What exactly are you having an issue with?


#3

With everything. Every variable I wrote didnt worked


#4

What is your variable?


#5

Hello dari,
The task specifies to include a comment of our own specifying what is going to be printed.
def spam():
"""prints Eggs to the console"""

     print "Eggs!"

spam()

hope this helps`


#6

Hello dari,
You have forgot to call you function (spam).
To do this, you need to add the following line of code to the very end of your script:

spam()

This will make program look like this:

def spam():
"""Prints 'Eggs!' to the console."""
print "Eggs!"
spam()

This should work.