What am i not seeing? spam=true?


#1

hello i am on pthyon having trouble creating a variable “spam” and assigning it the value of "true"
when i follow the instructions the code says true has not been defined
i am writing spam=true


#2

Are you writing spam=true or spam = true

That’s not even the problem, scrap that. Try capitalizing true.


#3

sorry, i did not capitalize True…so the correct way was “spam = True”…another question…the spacing of “=” when writing the code…does it matter? ex: spam=True or spam = True


#4

I’d say that 99% of programmers will write spam = True, and you should too :wink:

We should always attempt to make the code as easy to read as possible.


#5

ok thank you for replying:+1:


#6

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