Python synthax - Math (Help!)


#1

So I am stuck on the problem where they are asking to "Set the variable count_to equal to the sum of two big numbers."

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

The error shows this:
File "python", line 5
print count_to = 1000 + 2939230948
^
SyntaxError: invalid syntax

I expected to have the window display the sum but only the error shows up. I am not sure why this is happening.

my code:

# Set count_to equal to the sum of two big numbers



print count_to = 1000 + 2939230948

note - i even did this on line 6 where i made count_to = 1000 + 2939230948 and the same error occurred.


#2

you can't assign a value to a variable and print it on the same line. You first need to set the variable, then next line you can print it


#3

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