Function Junction...what am I doing wrong here?


Here is my code

def spam():
    """this will return eggs"""
    print "Eggs!"

I'm doing exactly as the instructions say...? Can't figure out what is wrong.


The operative word is return. Did the instructions state exactly to print?


These were the rules.

Go ahead and create a function, spam, that prints the string "Eggs!" to the console. Don't forget to include a comment of your own choosing (enclose it in triple quotes!).

When my code is entered, the error code I get is

Oops, try again. Make sure your function prints "Eggs!" to the console!


Have you written a call to the function?


Although I'm facing no problem with the exact code you wrote here ! also, my python 2.7.2 version is not complaining !