{"id":21844,"date":"2020-08-28T11:30:50","date_gmt":"2020-08-28T18:30:50","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=21844"},"modified":"2023-12-01T03:58:54","modified_gmt":"2023-12-01T11:58:54","slug":"python-syntaxerror-cant-assign-to-function-call","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-cant-assign-to-function-call\/","title":{"rendered":"Python SyntaxError: can\u2019t assign to function call Solution"},"content":{"rendered":"\n<p>To assign the <a href=\"https:\/\/careerkarma.com\/blog\/python-functions\/\">result of a function<\/a> to a variable, you must specify the variable name, followed by an equals sign, followed by the function you want to call. If you do not follow this order, you\u2019ll encounter a \u201cSyntaxError: can\u2019t assign to function call\u201d error.<br><\/p>\n\n\n\n<p>This guide discusses what this error means and why it is raised. We\u2019ll walk through an example of this error to help you understand how you can fix it in your code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SyntaxError: can\u2019t assign to function call<\/h2>\n\n\n\n<p><a href=\"https:\/\/careerkarma.com\/blog\/python-variables\/\">Python variables<\/a> are defined using the following syntax:<br><\/p>\n\n\n\n<p><code>favorite_cheese = \u201cStilton\u201d<br><\/code><\/p>\n\n\n\n<p>The name of a variable comes first. The variable name is followed by an equals sign. After this equals sign, you can specify the value a variable should hold.<br><\/p>\n\n\n\n<p>If you read this out loud as if it were a sentence, you\u2019ll hear:<br><\/p>\n\n\n\n<p>\u201cFavorite cheese is equal to Stilton.\u201d<br><\/p>\n\n\n\n<p>You must follow this order when you declare a variable. You cannot declare a variable by specifying the value first and the name of a variable last.<br><\/p>\n\n\n\n<p>The <code>SyntaxError: can\u2019t assign to function call<\/code> error occurs if you try to assign a value to a function call. This means that you\u2019re trying to assign a value to a function instead of trying to assign a function call to a variable.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An Example Scenario<\/h2>\n\n\n\n<p>We\u2019re building a program that creates a list of all the sandwiches that have been sold more than 1,000 times at a shop in the last month.<br><\/p>\n\n\n\n<p>To start, define a <a href=\"https:\/\/careerkarma.com\/blog\/how-to-initialize-a-list-in-python\/\">list of sandwiches<\/a>:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>sandwiches = [\n\t{ &quot;name&quot;: &quot;Egg Salad&quot;, &quot;sold&quot;: 830 },\n\t{ &quot;name&quot;: &quot;Ham and Cheese&quot;, &quot;sold&quot;: 1128 },\n\t{ &quot;name&quot;: &quot;Cheese Supreme&quot;, &quot;sold&quot;: 1203 },\n\t{ &quot;name&quot;: &quot;Tuna Mayo&quot;, &quot;sold&quot;: 984 }\n]\n<\/pre><\/div>\n\n\n\n<p>Our list of sandwiches contains four dictionaries. An individual dictionary contains information about one sandwich. Next, we define a function that calculates which sandwiches have been sold more than 1,000 times:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>def sold_1000_times(sandwiches):\n\ttop_sellers = []\n\n\tfor s in sandwiches:\n\t\tif s[&quot;sold&quot;] &gt; 1000:\n\t\t\ttop_sellers.append(s)\n\n\treturn top_sellers\n<\/pre><\/div>\n\n\n\n<p>This function accepts one argument: a list of sandwiches. We iterate through this list of sandwiches using a <a href=\"https:\/\/careerkarma.com\/blog\/python-for-loop\/\">for loop<\/a>. If a sandwich has been sold more than 1000 times in the last month, that sandwich is added to the <code>1000_sales<\/code> list. Otherwise, nothing happens.<br><\/p>\n\n\n\n<p>Next, we call our function and assign the value it returns to a variable:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>sold_1000_times(sandwiches) = top_sellers\nprint(top_sellers)\n<\/pre><\/div>\n\n\n\n<p>We\u2019ve assigned our function call to the variable <code>top_sellers<\/code>. We then print that value to the console so we can see the sandwiches that have been sold more than 1,000 times.<br><\/p>\n\n\n\n<p>Let\u2019s run our code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>  File &quot;main.py&quot;, line 17\n\tsold_1000_times(sandwiches) = top_sellers\n\t^\nSyntaxError: cannot assign to function call\n<\/pre><\/div>\n\n\n\n<p>We receive an error message.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Solution<\/h2>\n\n\n\n<p>Our code does not work because we\u2019re trying to assign a value to a function call.<br><\/p>\n\n\n\n<p>When we want to assign the response of a function to a variable, we must declare the variable like any other. This means the variable name comes first, followed by an equals sign, followed by the value that should be assigned to that variable.<br><\/p>\n\n\n\n<p>Our code tries to assign the value <code>top_sellers<\/code> to a variable called <code>sold_1000_times(sandwiches)<\/code>:<br><\/p>\n\n\n\n<p><code>sold_1000_times(sandwiches) = top_sellers<br><\/code><\/p>\n\n\n\n<p>This is invalid syntax. To solve this error, we need to reverse the order of our variable declaration:<br><\/p>\n\n\n\n<p><code>top_sellers = sold_1000_times(sandwiches)<br><\/code><\/p>\n\n\n\n<p>The name of our variable now comes first. The value we want to assign to the variable comes after the equals sign. Let\u2019s run our program:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>[{'name': 'Ham and Cheese', 'sold': 1128}, {'name': 'Cheese Supreme', 'sold': 1203}]\n<\/pre><\/div>\n\n\n\n<p>Our code returns a list of all the sandwiches that have been sold more than 1,000 times.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The \u201cSyntaxError: can\u2019t assign to function call\u201d error is raised when you try to assign a function call to a variable.<br><\/p>\n\n\n\n<p>This happens if you assign the value of a function call to a variable in reverse order. To solve this error, make sure you use the correct syntax to declare a variable. The variable name comes first, followed by an equals sign, followed by the value you want to assign to the variable.<br>Now you\u2019re ready to solve this error in your own <a href=\"https:\/\/careerkarma.com\/blog\/how-long-to-learn-python\/\">Python programs<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"To assign the result of a function to a variable, you must specify the variable name, followed by an equals sign, followed by the function you want to call. If you do not follow this order, you\u2019ll encounter a \u201cSyntaxError: can\u2019t assign to function call\u201d error. This guide discusses what this error means and why&hellip;","protected":false},"author":240,"featured_media":21845,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-21844","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.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Python SyntaxError: can\u2019t assign to function call Solution | Career Karma<\/title>\n<meta name=\"description\" content=\"The Python SyntaxError: can\u2019t assign to function call error is raised when you incorrectly call a function. On Career Karma, learn how to fix this 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-cant-assign-to-function-call\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python SyntaxError: can\u2019t assign to function call Solution\" \/>\n<meta property=\"og:description\" content=\"The Python SyntaxError: can\u2019t assign to function call error is raised when you incorrectly call a function. On Career Karma, learn how to fix this error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-cant-assign-to-function-call\/\" \/>\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-28T18:30:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:58:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/andreas-palmer-UJSjxFNLFWY-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"667\" \/>\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=\"4 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-cant-assign-to-function-call\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-syntaxerror-cant-assign-to-function-call\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python SyntaxError: can\u2019t assign to function call Solution\",\"datePublished\":\"2020-08-28T18:30:50+00:00\",\"dateModified\":\"2023-12-01T11:58:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-syntaxerror-cant-assign-to-function-call\\\/\"},\"wordCount\":608,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-syntaxerror-cant-assign-to-function-call\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/andreas-palmer-UJSjxFNLFWY-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-syntaxerror-cant-assign-to-function-call\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-syntaxerror-cant-assign-to-function-call\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-syntaxerror-cant-assign-to-function-call\\\/\",\"name\":\"Python SyntaxError: can\u2019t assign to function call Solution | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-syntaxerror-cant-assign-to-function-call\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-syntaxerror-cant-assign-to-function-call\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/andreas-palmer-UJSjxFNLFWY-unsplash.jpg\",\"datePublished\":\"2020-08-28T18:30:50+00:00\",\"dateModified\":\"2023-12-01T11:58:54+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The Python SyntaxError: can\u2019t assign to function call error is raised when you incorrectly call a function. On Career Karma, learn how to fix this error.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-syntaxerror-cant-assign-to-function-call\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-syntaxerror-cant-assign-to-function-call\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-syntaxerror-cant-assign-to-function-call\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/andreas-palmer-UJSjxFNLFWY-unsplash.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/andreas-palmer-UJSjxFNLFWY-unsplash.jpg\",\"width\":1000,\"height\":667},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-syntaxerror-cant-assign-to-function-call\\\/#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: can\u2019t assign to function call 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\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"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: can\u2019t assign to function call Solution | Career Karma","description":"The Python SyntaxError: can\u2019t assign to function call error is raised when you incorrectly call a function. On Career Karma, learn how to fix this 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-cant-assign-to-function-call\/","og_locale":"en_US","og_type":"article","og_title":"Python SyntaxError: can\u2019t assign to function call Solution","og_description":"The Python SyntaxError: can\u2019t assign to function call error is raised when you incorrectly call a function. On Career Karma, learn how to fix this error.","og_url":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-cant-assign-to-function-call\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-08-28T18:30:50+00:00","article_modified_time":"2023-12-01T11:58:54+00:00","og_image":[{"width":1000,"height":667,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/andreas-palmer-UJSjxFNLFWY-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":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-cant-assign-to-function-call\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-cant-assign-to-function-call\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python SyntaxError: can\u2019t assign to function call Solution","datePublished":"2020-08-28T18:30:50+00:00","dateModified":"2023-12-01T11:58:54+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-cant-assign-to-function-call\/"},"wordCount":608,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-cant-assign-to-function-call\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/andreas-palmer-UJSjxFNLFWY-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-syntaxerror-cant-assign-to-function-call\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-cant-assign-to-function-call\/","url":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-cant-assign-to-function-call\/","name":"Python SyntaxError: can\u2019t assign to function call Solution | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-cant-assign-to-function-call\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-cant-assign-to-function-call\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/andreas-palmer-UJSjxFNLFWY-unsplash.jpg","datePublished":"2020-08-28T18:30:50+00:00","dateModified":"2023-12-01T11:58:54+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The Python SyntaxError: can\u2019t assign to function call error is raised when you incorrectly call a function. On Career Karma, learn how to fix this error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-cant-assign-to-function-call\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-syntaxerror-cant-assign-to-function-call\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-cant-assign-to-function-call\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/andreas-palmer-UJSjxFNLFWY-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/andreas-palmer-UJSjxFNLFWY-unsplash.jpg","width":1000,"height":667},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-cant-assign-to-function-call\/#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: can\u2019t assign to function call 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\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","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\/21844","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=21844"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21844\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/21845"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=21844"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=21844"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=21844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}