7.A Matter of Interpretation


#1



https://www.codecademy.com/en/courses/introduction-to-python-6WeG3/1/3?curriculum_id=4f89dab3d788890003000096#

File "python", line 2
my_variable = spam
^
IndentationError: expected an indented block

1.Create a variable called spam and assign it the value of True.
Create a variable called eggs and assign it the value of False


python

Replace this line with your code.

`


#2

Hey buddy they mean it literallly so what you would do for this to work is

spam = True
eggs = False
print spam
print eggs

#3

Create a variable called spam and .01. assign it the value of True.
Create a variable called eggs and .02.assign it the value of False.

How do you write this?


#4

this is how you create a variable.

x = True

i have just created a variable called x and assigned it to the value True

...

y = False

I have just created a variable called y and assigned it to the value False


#5

Do you now understand or at least have an idea of what I'm doing here? :slight_smile: