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


#1

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.


#2

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


#3

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!


#4

Have you written a call to the function?


#8

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


#10