1/19 Syntax?!


#1

Here is my Code:

def spam():
"""Spamt 'Eggs!'"""
spam "Eggs! "
spam(print 'Eggs!')


And it says:

  1. Oops, try again. Your syntax looks a bit off. Double check your parentheses and colon!
  2. File "python", line 7
    spam "Eggs! "
    ^
    SyntaxError: invalid syntax

How I can fix this??


#2

spam OR Spamt ......Double check


#3

Now it says:
File "python", line 7
spam "Eggs! "
^
SyntaxError: invalid syntax


#4

(not the right answer)


#5

This is how it works :grinning:

def spam():
"""Spam 'Eggs!'"""
print "Eggs!"

spam()


#6

Nice job finding it out, I was about to post the answer till I saw you found it.