What must I creat variable for Eggs?


#1

Pyhton Lesson (1.5)

Codecademy want to do it
Create a variable called spam and assign it the value of True.
Create a variable called eggs and assign it the value of False.

and so l write that,

def spam() =
spam = True
eggs  = False

Where is my wrong?


#2

why do you have a function? Remove the function. Can you provide the exercise url and updated version of your code if you still have problems

If you do want a function, use a colon after spam() instead of equal sign, and make sure the indention is right


#3

A function is "def spam() =".isn't it?


#4

Wow. Really I am so sorry. I don't know why l wrote "def spam()=". Thanks for everything