Function Junction!


#1



https://www.codecademy.com/courses/python-beginner-c7VZg/1/1?curriculum_id=4f89dab3d788890003000096#

I am stuck on the bloody function junction! Can somebody advise on where i have gone wrong here please?
I have included the triple quotes for my comment but it keeps coming back with the same error.

File "python", line 6
"""Going slightly mad trying to get this to work!"""
^
IndentationError: expected an indented block


# Define your spam function starting on line 5. You
# can leave the code on line 11 alone for now--we'll
# explain it soon!

def spam():
"""Going slightly mad trying to get this to work!"""
print'Eggs!'


# Define the spam function above this line.
spam()


#2

function content (like the comment and printing eggs) requires indention which you can achieve with tab or spaces


#3

Try using "Eggs!" It might not work because of the quotes


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.