Python Syntax Matter of Interpretation


#1

Hi Everyone!

I have a question with this topic. The question I'm supposed to solve is-

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

So, I coded-

spam=True;
eggs = False;

But it keeps asking me if I defined a variable called spam?

Can I check why I'm wrong and what the solution is?

I've been doing this for ages and its driving me crazy.


#2

why do you use semi-colons? Python doesn't use semi-colons. For the rest, the code is fine, if the problem persist, try a different browser, you browser might be sending cached data


#3

Ok! Thank you so much :)))) good luck with your coding too!!