Variable count_to syntax error


#1



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

SyntaxError Invalid syntax

I don't understand how to set this out. I am asked to add 2 large numbers ( set count_to equal to the sum of 2 large numbers are the instructions). I said
line 3 variable_ name print count_to sum= 600+700 and then
line 4 variable_name=count_to =sum= 600+700
and got a syntax error saying invalid syntax. What is wrong? I don't understand what Im doing wrong? Please help N Worrall


Replace this line with your code.


#2

Hi can you post your code?


#3

Set count_to equal to the sum of two big numbers (This was the instruction)

print count_to sum=600+700
variable_name= count_to sum= 600 + 700
count_to = 600+700
print count_to


#4

This was my code

Set count_to equal to the sum of two big numbers

print count_to sum=600+700
variable_name= count_to sum= 600 + 700
count_to = 600+700
print count_to
Whats wrong?
Thank you Nichola Worrall


#5

The instruction aske you To. .
Set the variable count_to equal to the sum of two big numbers.
You Just need To do it like that

count_to = 23446789293784928191 + 61671849940405

#6

Thank you so much you helped me solve this stupid problem which i didnt understand :slight_smile:


#7

Hello again. I have tried again. Here is my code
1# Set count_to equal to the sum of two big numbers
2 print coun_to sum = 600+700
3 variable_name = count_to
4 count_to 8060006867986976 + 907006565656565656
There seems to be a syntax error. I am finding this hard to understand I still don’t know what I am doing wrong. Please can you help
Thank you
Kind regards Nichola Worrall


#8

Hi can you take a sceenshot of your code?


#9

[cid:image001.jpg@01D1E9B3.ED45D6D0]
Hello Seth
Please find above the screenshot of my code. What do I do with it to correct it? Please can you help.
Kind regards
Nichola Worrall


#10

Just remove The The code You have on Line 2 And 3


#11

Thank you Seth it worked.Kind regards Nichola Worrall


#12

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