{"id":21538,"date":"2020-08-22T05:15:41","date_gmt":"2020-08-22T12:15:41","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=21538"},"modified":"2023-12-01T03:58:43","modified_gmt":"2023-12-01T11:58:43","slug":"python-typeerror-float-object-is-not-callable","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/","title":{"rendered":"Python TypeError: \u2018float\u2019 object is not callable Solution"},"content":{"rendered":"\n<p><a href=\"https:\/\/careerkarma.com\/blog\/python-float\/\">Floating-point values<\/a> are not callable. This is because floating points store numerical values. They are not functions that return a particular value when called. If you try to call a floating-point value as if it were a function, you encounter a \u201cTypeError: \u2018float\u2019 object is not callable\u201d error.<br><\/p>\n\n\n\n<p>In this guide, we discuss how this error works and why you may find it in your code. We walk through an example scenario to help you learn how to fix it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">TypeError: \u2018float\u2019 object is not callable<\/h2>\n\n\n\n<p>A set of parentheses denotes a <a href=\"https:\/\/careerkarma.com\/blog\/python-functions\/\">function call<\/a>. A function call instructs the contents of a function to run. Only functions can be called. Other values, like floating points, do not return values, and so they cannot be called.<br><\/p>\n\n\n\n<p>The \u201cTypeError: \u2018float\u2019 object is not callable\u201d error happens if you follow a floating point value with parenthesis. This can happen if:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>You have named a variable \u201cfloat\u201d and try to use the float() function later in your code.<\/li><li>You forget an operand in a mathematical problem.<\/li><\/ul>\n\n\n\n<p>Let\u2019s look at both of these potential scenarios in detail.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Scenario #1: Naming a Variable \u201cfloat\u201d<\/h2>\n\n\n\n<p>Let\u2019s write a program that calculates the tips each member of the wait staff at a restaurant are due. The restaurant splits all the tips equally.<br><\/p>\n\n\n\n<p>We start by asking the user to tell the program how much was received in tips and how many staff members were working on a particular day using the <a href=\"https:\/\/careerkarma.com\/blog\/python-input\/\">input() method<\/a>:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>staff_working = input(&quot;How many staff were working today? &quot;)\nfloat = float(input(&quot;How much was earned in tips? &quot;))<\/pre><\/div>\n\n\n\n<p>Next, we write a <a href=\"https:\/\/careerkarma.com\/blog\/python-math-operators\/\">math equation<\/a> that calculates how much each member of the wait staff is due in tips:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>staff_due = float \/ float(staff_working)\nrounded = round(staff_due, 2)\n\nprint(rounded)<\/pre><\/div>\n\n\n\n<p>We round the amount that each staff member is due to two decimal places so that we have a monetary value that we can give to each staff member in tips. We print this rounded amount to the console. Next, run our code and see what happens:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>How many staff were working today? 7\nHow much was earned in tips? 300\nTraceback (most recent call last):\n  File &quot;main.py&quot;, line 5, in &lt;module&gt;\n\trounded = round(staff_due, 2)\nTypeError: 'float' object is not callable<\/pre><\/div>\n\n\n\n<p>Our code returns an error. This is because we have assigned a floating point value to a variable called \u201cfloat\u201d. Later in our code, we try to use the <code>float()<\/code> function to convert a value to a float. Because we have assigned \u201cfloat\u201d a numerical value, our code cannot call the <code>float()<\/code> function.<br><\/p>\n\n\n\n<p>To solve this problem, we need to rename our \u201cfloat\u201d variable:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>staff_working = input(&quot;How many staff were working today? &quot;)\nearned_in_tips = float(input(&quot;How much was earned in tips?&quot;))\n\nstaff_due = earned_in_tips \/ float(staff_working)\nrounded = round(staff_due, 2)\n\nprint(rounded)<\/pre><\/div>\n\n\n\n<p>We have renamed the <a href=\"https:\/\/careerkarma.com\/blog\/python-variables\/\">variable<\/a> \u201cfloat\u201d to \u201cearned_in_tips\u201d. Let\u2019s run our code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>How many staff were working today? 7\nHow much was earned in tips? 300\n42.86<\/pre><\/div>\n\n\n\n<p>Our code runs successfully. Each member of the wait staff is due $42.86 in tips.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Scenario #2: Missing Mathematical Operator<\/h2>\n\n\n\n<p>The cause of the \u201cTypeError: \u2018float\u2019 object is not callable\u201d error can often be down to a missing mathematical operator.<br><\/p>\n\n\n\n<p>The restaurant is offering a bonus program where the restaurant applies a 5% increase to all the tips earned in a day. This means that the wait staff will earn more money at the end of the day, depending on how much in tips they collect.<br><\/p>\n\n\n\n<p>To account for this increase, we need to revise our formula for calculating the tips due to be given to the staff members:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>staff_working = input(&quot;How many staff were working today? &quot;)\nearned_in_tips = float(input(&quot;How much was earned in tips? &quot;))\n\nstaff_due = 1.05 (earned_in_tips \/ float(staff_working))\nrounded = round(staff_due, 2)\n\nprint(rounded)<\/pre><\/div>\n\n\n\n<p>Our code calculates the amount each staff member is due by dividing how much is earned in tips by the number of staff working. We multiply this by 1.05 to calculate a 5% increase in the total tips due for each staff member. Let\u2019s run our code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>How many staff were working today? 7\nHow much was earned in tips? 300\nTraceback (most recent call last):\n  File &quot;main.py&quot;, line 4, in &lt;module&gt;\n\tstaff_due = 1.05 (earned_in_tips \/ float(staff_working))\nTypeError: 'float' object is not callable<\/pre><\/div>\n\n\n\n<p>We encounter an error. This is because we have forgotten a mathematical operator in our code. 1.05 is followed immediately by a set of parenthesis. Python treats this as a function call on the 1.05 value. Our \u201cstaff_due\u201d formula should include a multiplication sign (*):<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>staff_due = 1.05 * (earned_in_tips \/ float(staff_working))<\/pre><\/div>\n\n\n\n<p>Our new code separates the 1.05 value and the result of our math equation in brackets with a multiplication sign. Let\u2019s run our code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>How many staff were working today? 7\nHow much was earned in tips? 300\n45.0<\/pre><\/div>\n\n\n\n<p>Each member of the wait staff is entitled to $45.00 from the tip pot. This includes the 5% bonus the restaurant is offering its staff.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The \u201cTypeError: \u2018float\u2019 object is not callable\u201d error is raised when you try to call a floating-point number as a function.<br><\/p>\n\n\n\n<p>You can solve this problem by ensuring that you do not name any variables \u201cfloat\u201d before you use the <code>float()<\/code> function. If that does not solve the problem, make sure that your code includes all the right mathematical operands.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to solve this common <a href=\"https:\/\/careerkarma.com\/blog\/node-js-vs-python\/\">Python<\/a> error like a pro!<\/p>\n","protected":false},"excerpt":{"rendered":"Floating-point values are not callable. This is because floating points store numerical values. They are not functions that return a particular value when called. If you try to call a floating-point value as if it were a function, you encounter a \u201cTypeError: \u2018float\u2019 object is not callable\u201d error. In this guide, we discuss how this&hellip;","protected":false},"author":240,"featured_media":18465,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-21538","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 TypeError: \u2018float\u2019 object is not callable Solution | Career Karma<\/title>\n<meta name=\"description\" content=\"On Career Karma, learn about the Python TypeError: \u2018float\u2019 object is not callable, 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-typeerror-float-object-is-not-callable\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python TypeError: \u2018float\u2019 object is not callable Solution\" \/>\n<meta property=\"og:description\" content=\"On Career Karma, learn about the Python TypeError: \u2018float\u2019 object is not callable, how the error works, and how to solve the error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/\" \/>\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-22T12:15:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:58:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/fotis-fotopoulos-DuHKoV44prg-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-typeerror-float-object-is-not-callable\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python TypeError: \u2018float\u2019 object is not callable Solution\",\"datePublished\":\"2020-08-22T12:15:41+00:00\",\"dateModified\":\"2023-12-01T11:58:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/\"},\"wordCount\":713,\"commentCount\":1,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/fotis-fotopoulos-DuHKoV44prg-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/\",\"name\":\"Python TypeError: \u2018float\u2019 object is not callable Solution | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/fotis-fotopoulos-DuHKoV44prg-unsplash.jpg\",\"datePublished\":\"2020-08-22T12:15:41+00:00\",\"dateModified\":\"2023-12-01T11:58:43+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"On Career Karma, learn about the Python TypeError: \u2018float\u2019 object is not callable, how the error works, and how to solve the error.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/fotis-fotopoulos-DuHKoV44prg-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/fotis-fotopoulos-DuHKoV44prg-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/#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 TypeError: \u2018float\u2019 object is not callable 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 TypeError: \u2018float\u2019 object is not callable Solution | Career Karma","description":"On Career Karma, learn about the Python TypeError: \u2018float\u2019 object is not callable, 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-typeerror-float-object-is-not-callable\/","og_locale":"en_US","og_type":"article","og_title":"Python TypeError: \u2018float\u2019 object is not callable Solution","og_description":"On Career Karma, learn about the Python TypeError: \u2018float\u2019 object is not callable, how the error works, and how to solve the error.","og_url":"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-08-22T12:15:41+00:00","article_modified_time":"2023-12-01T11:58:43+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/fotis-fotopoulos-DuHKoV44prg-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-typeerror-float-object-is-not-callable\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python TypeError: \u2018float\u2019 object is not callable Solution","datePublished":"2020-08-22T12:15:41+00:00","dateModified":"2023-12-01T11:58:43+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/"},"wordCount":713,"commentCount":1,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/fotis-fotopoulos-DuHKoV44prg-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/","url":"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/","name":"Python TypeError: \u2018float\u2019 object is not callable Solution | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/fotis-fotopoulos-DuHKoV44prg-unsplash.jpg","datePublished":"2020-08-22T12:15:41+00:00","dateModified":"2023-12-01T11:58:43+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"On Career Karma, learn about the Python TypeError: \u2018float\u2019 object is not callable, how the error works, and how to solve the error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/fotis-fotopoulos-DuHKoV44prg-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/fotis-fotopoulos-DuHKoV44prg-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-float-object-is-not-callable\/#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 TypeError: \u2018float\u2019 object is not callable 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\/21538","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=21538"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21538\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/18465"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=21538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=21538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=21538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}