Stuck in function junction please help!


#1



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


in 12th line it says unindent does not match any outer indentation level


i expect to print the string "Eggs!"


def spam(s):
    """prints the string 'Eggs!'"""
s="Eggs!"
print s


#2

Hi, @blogjumper82745 ,

To be part of the spam function, the final two lines need to be indented by the same amount as the line above them.


#3

i didnt understand what you said!! can you please explain it to me in simpler terms?


#4

you need to align the two last lines with spam so it's part of the function

def spam(s):
      """prints the string 'Eggs!'"""
     s="Eggs!"
     print s

#5

@blogjumper82745 ,

This line is indented by four spaces ...

    """prints the string 'Eggs!'"""

These two lines should also each be indented by four spaces ...

s="Eggs!"
print s

#6

oh ok fixed it thank you


#7

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