{"id":21079,"date":"2020-08-12T10:52:48","date_gmt":"2020-08-12T17:52:48","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=21079"},"modified":"2023-12-01T03:57:44","modified_gmt":"2023-12-01T11:57:44","slug":"python-syntaxerror-unexpected-eof-while-parsing","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/","title":{"rendered":"Python SyntaxError: unexpected EOF while parsing Solution"},"content":{"rendered":"\n<p>Python is a statically typed language. This means it\u2019s strict about how code is written.<br><\/p>\n\n\n\n<p>If you forget to complete a code block in your code, you get an error like \u201cSyntaxError: unexpected EOF while parsing\u201d. This happens in a number of situations, such as when you forget to add a line of code into a for loop.<br><\/p>\n\n\n\n<p>In this guide, we talk about this Python error and why it is raised. We walk through a few example scenarios so you can figure out how to solve this common error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SyntaxError: unexpected EOF while parsing<\/h2>\n\n\n\n<p>The \u201cSyntaxError: unexpected EOF while parsing\u201d error occurs when the end of your source code is reached before all code is executed. This happens when you make a mistake in the structure, or syntax, of your code.<br><\/p>\n\n\n\n<p>EOF stands for End of File. This represents the last character in a Python program.<br><\/p>\n\n\n\n<p>Python reaches the end of a file before running every block of code if:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>You forget to enclose code inside a special statement like a for loop, a while loop, or a function.<\/li><li>You do not close all of the parenthesis on a line of code in your program.<\/li><\/ul>\n\n\n\n<p>Let\u2019s walk through each of these mistakes one-by-one. There are other scenarios where this error is raised but those mentioned above are the most common.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Example #1: Enclosing Code in a Special Statement<\/h2>\n\n\n\n<p><a href=\"https:\/\/careerkarma.com\/blog\/python-for-loop\/\">For loops<\/a>, <a href=\"https:\/\/careerkarma.com\/blog\/python-if-else\/\">if statements<\/a>, <a href=\"https:\/\/careerkarma.com\/blog\/do-while-python\/\">while loops<\/a>, and <a href=\"https:\/\/careerkarma.com\/blog\/python-functions\/\">functions<\/a> require at least one line of code in their statements. Forgetting to include a line of code in a special statement will result in an unexpected EOF error.<br><\/p>\n\n\n\n<p>Take a look at a for loop that prints out a list of ingredients in a recipe:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>ingredients = [&quot;325g plain flour&quot;, &quot;200g chilled butter&quot;, &quot;125g golden caster sugar&quot;, &quot;2 tsp vanilla extract&quot;, &quot;2 free range egg yolks&quot;]\n\nfor i in ingredients:<\/pre><\/div>\n\n\n\n<p>We define a <a href=\"https:\/\/careerkarma.com\/blog\/python-variables\/\">variable<\/a> called \u201cingredients\u201d that stores a list of ingredients for a vanilla shortbread recipe. We use a for loop to iterate through each ingredient in the list. Run our code and see what happens:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>File &quot;main.py&quot;, line 4\n    \n                     \t^\nSyntaxError: unexpected EOF while parsing<\/pre><\/div>\n\n\n\n<p>We have not added any code into our \u201cfor\u201d loop. This raises an error. This same error occurs if we define a while loop, an if statement, or a function without enclosing any code in the statement.<br><\/p>\n\n\n\n<p>To solve this problem, we add some code to our loop. We add a <code>print()<\/code> statement so we can print each individual ingredient to the console:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>for i in ingredients:\n\tprint(i)<\/pre><\/div>\n\n\n\n<p>Let\u2019s run our code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>325g plain flour\n200g chilled butter\n125g golden caster sugar\n2 tsp vanilla extract\n2 free range egg yolks<\/pre><\/div>\n\n\n\n<p>Our code prints out each ingredient in our list of ingredients. This tells us the code blocks were completed successfully.&nbsp;<br><\/p>\n\n\n\n<p>If you do not have any code you want to add into a special statement, use the <a href=\"https:\/\/careerkarma.com\/blog\/python-pass\/\">\u201cpass\u201d statement<\/a> as a placeholder. Consider this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>ingredients = [&quot;325g plain flour&quot;, &quot;200g chilled butter&quot;, &quot;125g golden caster sugar&quot;, &quot;2 tsp vanilla extract&quot;, &quot;2 free range egg yolks&quot;]\n\nfor i in ingredients:\n\tpass<\/pre><\/div>\n\n\n\n<p>This code returns no values. We have defined a loop but the &#8220;pass&#8221; statement tells our program the loop does not need to do anything yet. This keyword is often used when developers are building the structure for a program. Once a program\u2019s structure is determined, \u201cpass\u201d statements are replaced with the relevant code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Example #2: Unclosed Parenthesis<\/h2>\n\n\n\n<p>An \u201cunexpected EOF while parsing\u201d error occurs when you forget to close all of the parenthesis on a line of code.<br><\/p>\n\n\n\n<p>Write a program that prints out information about a recipe to the console. Start by defining a few variables with information on a recipe:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>name = &quot;Vanilla Shortbread&quot;\nauthor = &quot;Career Karma&quot;\nvegetarian = &quot;This recipe is vegetarian.&quot;<\/pre><\/div>\n\n\n\n<p>We format this into a string using the <code>.format()<\/code> method:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(&quot;The {} recipe was devised by {}. {}&quot;.format(name, author, vegetarian)<\/pre><\/div>\n\n\n\n<p>The {} values are substituted with the respective values in the <code>.format()<\/code> statement. This means that our string will say:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>The NAME recipe was devised by AUTHOR. VEGETARIAN<\/pre><\/div>\n\n\n\n<p>Run our code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre> File &quot;main.py&quot;, line 7\n    \n                                                                            \t^\nSyntaxError: unexpected EOF while parsing<\/pre><\/div>\n\n\n\n<p>On our <code>print()<\/code> line of code, we only close one set of parenthesis. We have opened two sets of parentheses. Hence, an error has been returned.&nbsp;<br><\/p>\n\n\n\n<p>We solve this problem by adding an end parenthesis (\u201c)\u201d) character to the end of the <code>print()<\/code> line of code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(&quot;The {} recipe was devised by {}. {}&quot;.format(name, author, vegetarian))<\/pre><\/div>\n\n\n\n<p>This line of code ends in two parenthesis instead of one. All parenthesis are now closed.<br><\/p>\n\n\n\n<p>Let\u2019s attempt to run our code again:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>The Vanilla Shortbread recipe was devised by Career Karma. This recipe is vegetarian.<\/pre><\/div>\n\n\n\n<p>Our code runs successfully.<br><\/p>\n\n\n\n<p>This same error happens if you forget to close a dictionary using the {} brackets. You also encounter this error if you forget to close a list using the [] brackets.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The \u201cSyntaxError: unexpected EOF while parsing\u201d error is raised when the Python interpreter reaches the end of a program before every line of code has been executed.<br><\/p>\n\n\n\n<p>To solve this error, first check to make sure that every if statement, for loop, while loop, and function contains code. Second, check to make sure you close all the parenthesis in your code.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to solve this syntax error like a <a href=\"https:\/\/careerkarma.com\/blog\/python-projects-beginners\/\">Python professional<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"Python is a statically typed language. This means it\u2019s strict about how code is written. If you forget to complete a code block in your code, you get an error like \u201cSyntaxError: unexpected EOF while parsing\u201d. This happens in a number of situations, such as when you forget to add a line of code into&hellip;","protected":false},"author":240,"featured_media":21080,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-21079","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Python","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Python SyntaxError: unexpected EOF while parsing Solution | CK<\/title>\n<meta name=\"description\" content=\"On Career Karma, learn about the Python SyntaxError: unexpected EOF while parsing, how the error works, and how to solve the error.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python SyntaxError: unexpected EOF while parsing Solution\" \/>\n<meta property=\"og:description\" content=\"On Career Karma, learn about the Python SyntaxError: unexpected EOF while parsing, how the error works, and how to solve the error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-12T17:52:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:57:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/john-hoang-njcCsp58sDc-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"680\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python SyntaxError: unexpected EOF while parsing Solution\",\"datePublished\":\"2020-08-12T17:52:48+00:00\",\"dateModified\":\"2023-12-01T11:57:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/\"},\"wordCount\":749,\"commentCount\":1,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/john-hoang-njcCsp58sDc-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/\",\"name\":\"Python SyntaxError: unexpected EOF while parsing Solution | CK\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/john-hoang-njcCsp58sDc-unsplash.jpg\",\"datePublished\":\"2020-08-12T17:52:48+00:00\",\"dateModified\":\"2023-12-01T11:57:44+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"On Career Karma, learn about the Python SyntaxError: unexpected EOF while parsing, how the error works, and how to solve the error.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/john-hoang-njcCsp58sDc-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/john-hoang-njcCsp58sDc-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/careerkarma.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\",\"item\":\"https:\/\/careerkarma.com\/blog\/python\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Python SyntaxError: unexpected EOF while parsing Solution\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\",\"url\":\"https:\/\/careerkarma.com\/blog\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/careerkarma.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python SyntaxError: unexpected EOF while parsing Solution | CK","description":"On Career Karma, learn about the Python SyntaxError: unexpected EOF while parsing, how the error works, and how to solve the error.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/","og_locale":"en_US","og_type":"article","og_title":"Python SyntaxError: unexpected EOF while parsing Solution","og_description":"On Career Karma, learn about the Python SyntaxError: unexpected EOF while parsing, how the error works, and how to solve the error.","og_url":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-08-12T17:52:48+00:00","article_modified_time":"2023-12-01T11:57:44+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/john-hoang-njcCsp58sDc-unsplash.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python SyntaxError: unexpected EOF while parsing Solution","datePublished":"2020-08-12T17:52:48+00:00","dateModified":"2023-12-01T11:57:44+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/"},"wordCount":749,"commentCount":1,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/john-hoang-njcCsp58sDc-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/","url":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/","name":"Python SyntaxError: unexpected EOF while parsing Solution | CK","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/john-hoang-njcCsp58sDc-unsplash.jpg","datePublished":"2020-08-12T17:52:48+00:00","dateModified":"2023-12-01T11:57:44+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"On Career Karma, learn about the Python SyntaxError: unexpected EOF while parsing, how the error works, and how to solve the error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/john-hoang-njcCsp58sDc-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/john-hoang-njcCsp58sDc-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-unexpected-eof-while-parsing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Python","item":"https:\/\/careerkarma.com\/blog\/python\/"},{"@type":"ListItem","position":3,"name":"Python SyntaxError: unexpected EOF while parsing Solution"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21079","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=21079"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21079\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/21080"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=21079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=21079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=21079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}