FAQ: Learn Python: Syntax - Errors

This community-built FAQ covers the “Errors” exercise from the lesson “Learn Python: Syntax”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Computer Science
Data Science

FAQs on the exercise Errors

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

3 posts were split to a new topic: Why does an error in python shut down the whole program?

A post was split to a new topic: My code should be correct but it fails?

What does “EOL while scanning string literal (” mean?

Do you have any formatted code to share?

That syntax error is usually due to missing quotes at the end of a string or the quotes don’t match in a string. (Use of single and double quotes). Or, if one has a multiple line string make sure to wrap it in triple quotes or use an escape character at the end of each in multi line string.