Stuck on math


Traceback (most recent call last):
File "python", line 5, in
NameError: name 'count_to' is not defined

I expected it to count to 67+56.

Replace this line with your code. 

variable_count_to= 67+56

print count_to


the variable holding the result of 67+56 is called variable_count_to, it should be count_to


As @stetim94 said, your variable is not the same. You included variable_ before the variable name. Simply remove that so your variables will both be count_to and your code will work perfectly fine. Good luck.


Make sure you use an existing variable for the printing function or it won't work.