one kind of error that you might see with some regularity is syntax error syntax error occurs when python doesn' recognize section of your program as valid python code for exampleif you use an apostrophe within single quotesyou'll produce an error this happens because python interprets everything between the first single quote and the apostrophe as string it then tries to interpret the rest of the text as python codewhich causes errors here' how to use single and double quotes correctly save this program as apostrophe py and then run itapostrophe py message "one of python' strengths is its diverse community print(messagethe apostrophe appears inside set of double quotesso the python interpreter has no trouble reading the string correctlyone of python' strengths is its diverse community howeverif you use single quotespython can' identify where the string should endmessage 'one of python' strengths is its diverse community print(messageyou'll see the following outputfile "apostrophe py"line message 'one of python' strengths is its diverse community ^ syntaxerrorinvalid syntax in the output you can see that the error occurs at right after the second single quote this syntax error indicates that the interpreter doesn' recognize something in the code as valid python code errors can come from variety of sourcesand 'll point out some common ones as they arise you might see syntax errors often as you learn to write proper python code syntax errors are also the least specific kind of errorso they can be difficult and frustrating to identify and correct if you get stuck on particularly stubborn errorsee the suggestions in appendix note your editor' syntax highlighting feature should help you spot some syntax errors quickly as you write your programs if you see python code highlighted as if it' english or english highlighted as if it' python codeyou probably have mismatched quotation mark somewhere in your file