r/web_programming • u/TenYearsLovin • Apr 26 '17
Learning Python with Codecademy. Please help me decipher what they're telling me to do.
I've just started with Python & I'm already stuck on a part. Here's what they're asking of me:
Set the variable count_to equal to the sum of two big numbers. The script window is numbered 1 - 5 with the 5th line having the variable count_to.
Here's what the hint tells me:
Remember, you can set a variable equal to a value with variable_name = # add your value here! Of course, variable_name, in this case, is actually count_to. The first error message said something about 50 + 30??
What the hell do they want me to do!? I've tried writing it like so: count_to = # 50 + 30 to no avail. Please help me figure this out.
4
u/ben12623 Apr 26 '17
The # symbol a single line comment in python. You commented out the value that you were assigning to the variable.
3
u/xemearg Apr 26 '17
I have never learned Python but I am guessing you don't want that # in there.
count_to = 50 + 30
EDIT: a part of programming is being able to google answers. Try googling python variables and I am sure you will find your answer if mine doesn't work.