{"id":21174,"date":"2020-08-13T22:56:10","date_gmt":"2020-08-14T05:56:10","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=21174"},"modified":"2023-12-01T03:57:47","modified_gmt":"2023-12-01T11:57:47","slug":"python-typeerror-int-object-is-not-callable","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-typeerror-int-object-is-not-callable\/","title":{"rendered":"Python TypeError: \u2018int\u2019 object is not callable Solution"},"content":{"rendered":"\n<p>Curly brackets in Python have a special meaning. They are used to denote a <a href=\"https:\/\/careerkarma.com\/blog\/python-functions\/\">function invocation<\/a>. If you specify a pair of curly brackets after an integer without an operator between them, Python thinks you\u2019re trying to call a function. This will return an \u201cTypeError: \u2018int\u2019 object is not callable\u201d error.<br><\/p>\n\n\n\n<p>In this guide, we talk about what this error means and why it is raised. We walk through two examples of this error to help you figure out what is causing it in your code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">TypeError: \u2018int\u2019 object is not callable<\/h2>\n\n\n\n<p>Python functions are called using curly brackets. Take a look at a statement that calls a function called \u201ccalculate_tip\u201d:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>calculate_tip(5, 10)<\/pre><\/div>\n\n\n\n<p>This function accepts two parameters. The values we have specified as parameters are 5 and 10. Because curly brackets have this special meaning, you cannot use them to call an integer.<br><\/p>\n\n\n\n<p>The two most common scenarios where developers try to call an integer are when:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The value of a function has been reassigned an <a href=\"https:\/\/careerkarma.com\/blog\/python-string-to-int\/\">integer value<\/a><\/li><li>A <a href=\"https:\/\/careerkarma.com\/blog\/python-math-operators\/\">mathematical operator<\/a> is missing in a calculation<\/li><\/ul>\n\n\n\n<p>Let\u2019s explore each of these scenarios one by one to help you fix the error you are facing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Scenario #1: Function Has an Integer Value<\/h2>\n\n\n\n<p>Write a program that calculates the sum of all the tips the wait staff at a restaurant has received in a day. We start by declaring a list of tips and a variable which will store the cumulative value of those tips:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>all_tips = [5, 10, 7.50, 9.25, 6.75]\nsum = 0<\/pre><\/div>\n\n\n\n<p>Next, we use the <a href=\"https:\/\/careerkarma.com\/blog\/python-sum\/\">sum() method<\/a> to calculate the total number of tips the wait staff have received:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>sum = sum(all_tips)\nprint(&quot;The total tips earned today amount to $&quot; + str(sum) + &quot;.&quot;)<\/pre><\/div>\n\n\n\n<p>The <code>sum()<\/code> method adds up all the values in an array. We then print out a message to the console informing us how much money was earned in tips. We use the <code>str()<\/code> method to convert the value of \u201csum\u201d to a string so we can concatenate it to the string that contains our message.<br><\/p>\n\n\n\n<p>Run our code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Traceback (most recent call last):\n  File &quot;main.py&quot;, line 4, in &lt;module&gt;\n\tsum = sum(all_tips)\nTypeError: 'int' object is not callable<\/pre><\/div>\n\n\n\n<p>Our code returns an error because we have assigned a variable called \u201csum\u201d which stores an integer value. Assigning this variable overrides the built-in <code>sum()<\/code> method. This means that when we try to use the <code>sum()<\/code> method, our code evaluates:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>total_tips = 0([5, 10, 7.50, 9.25, 6.75])<\/pre><\/div>\n\n\n\n<p>We can fix this error by renaming the variable \u201csum\u201d:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>all_tips = [5, 10, 7.50, 9.25, 6.75]\ntotal_tips = 0\n\ntotal_tips = sum(all_tips)\nprint(&quot;The total tips earned today amount to $&quot; + str(total_tips) +&quot;.&quot;)<\/pre><\/div>\n\n\n\n<p>We\u2019ve renamed the variable \u201csum\u201d to \u201ctotal_tips\u201d. Let\u2019s run our code again:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>The total tips earned today amount to $38.5.<\/pre><\/div>\n\n\n\n<p>Our code runs successfully!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Scenario #2: Missing a Mathematical Operator<\/h2>\n\n\n\n<p>Write a program that calculates a number multiplied by that number plus one. For instance, if we specify 9 in our program, it will multiply 9 and 10.<br><\/p>\n\n\n\n<p>Start by asking a user to insert a number:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>start_number = int(input(&quot;What number would you like to multiply? &quot;))<\/pre><\/div>\n\n\n\n<p>Next, we multiply the value of the \u201cstart_number\u201d <a href=\"https:\/\/careerkarma.com\/blog\/python-variables\/\">variable<\/a> by the number one greater than that value: <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>new_number = start_number (start_number + 1)\nprint(&quot;{} multiplied by {} is {}.&quot;.format(start_number, start_number + 1, new_number))<\/pre><\/div>\n\n\n\n<p>Our code prints out a message informing us of the answer to our math question. Run our code and see what happens:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>What number would you like to multiply? 9\nTraceback (most recent call last):\n  File &quot;main.py&quot;, line 3, in &lt;module&gt;\n\tnew_number = start_number (start_number + 1)\nTypeError: 'int' object is not callable<\/pre><\/div>\n\n\n\n<p>Our code does not finish executing. This is because we\u2019ve forgotten an operator in our code. In our \u201cnew_number\u201d line of code, we need to specify a multiplication operator. This is because Python treats square brackets followed by a value as a function call.<br><\/p>\n\n\n\n<p>Add in a multiplication operator (*) to our code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>new_number = start_number * (start_number + 1)<\/pre><\/div>\n\n\n\n<p>Now, our code should work:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>What number would you like to multiply? 10\n10 multiplied by 11 is 110.<\/pre><\/div>\n\n\n\n<p>Our code returns the expected response.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The \u201cTypeError: \u2018int\u2019 object is not callable\u201d error is raised when you try to call an integer.<br><\/p>\n\n\n\n<p>This can happen if you forget to include a mathematical operator in a calculation. This error can also occur if you accidentally override a built-in function that you use later in your code, like <code>round()<\/code> or <code>sum()<\/code>.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to solve this common Python issue like a <a href=\"https:\/\/careerkarma.com\/blog\/python-vs-c-plus-plus\/\">professional developer<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"Curly brackets in Python have a special meaning. They are used to denote a function invocation. If you specify a pair of curly brackets after an integer without an operator between them, Python thinks you\u2019re trying to call a function. This will return an \u201cTypeError: \u2018int\u2019 object is not callable\u201d error. In this guide, we&hellip;","protected":false},"author":240,"featured_media":21175,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-21174","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 TypeError: \u2018int\u2019 object is not callable Solution | Career Karma<\/title>\n<meta name=\"description\" content=\"On Career Karma, learn about the Python TypeError: \u2018int\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-int-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: \u2018int\u2019 object is not callable Solution\" \/>\n<meta property=\"og:description\" content=\"On Career Karma, learn about the Python TypeError: \u2018int\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-int-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-14T05:56:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:57:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/matt-wojtas-i69E6cGPLV0-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"685\" \/>\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-typeerror-int-object-is-not-callable\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-int-object-is-not-callable\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python TypeError: \u2018int\u2019 object is not callable Solution\",\"datePublished\":\"2020-08-14T05:56:10+00:00\",\"dateModified\":\"2023-12-01T11:57:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-int-object-is-not-callable\\\/\"},\"wordCount\":602,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-int-object-is-not-callable\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/matt-wojtas-i69E6cGPLV0-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-int-object-is-not-callable\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-int-object-is-not-callable\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-int-object-is-not-callable\\\/\",\"name\":\"Python TypeError: \u2018int\u2019 object is not callable Solution | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-int-object-is-not-callable\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-int-object-is-not-callable\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/matt-wojtas-i69E6cGPLV0-unsplash.jpg\",\"datePublished\":\"2020-08-14T05:56:10+00:00\",\"dateModified\":\"2023-12-01T11:57:47+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"On Career Karma, learn about the Python TypeError: \u2018int\u2019 object is not callable, how the error works, and how to solve the error.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-int-object-is-not-callable\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-int-object-is-not-callable\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-int-object-is-not-callable\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/matt-wojtas-i69E6cGPLV0-unsplash.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/matt-wojtas-i69E6cGPLV0-unsplash.jpg\",\"width\":1020,\"height\":685},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/python-typeerror-int-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: \u2018int\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\\\/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 TypeError: \u2018int\u2019 object is not callable Solution | Career Karma","description":"On Career Karma, learn about the Python TypeError: \u2018int\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-int-object-is-not-callable\/","og_locale":"en_US","og_type":"article","og_title":"Python TypeError: \u2018int\u2019 object is not callable Solution","og_description":"On Career Karma, learn about the Python TypeError: \u2018int\u2019 object is not callable, how the error works, and how to solve the error.","og_url":"https:\/\/careerkarma.com\/blog\/python-typeerror-int-object-is-not-callable\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-08-14T05:56:10+00:00","article_modified_time":"2023-12-01T11:57:47+00:00","og_image":[{"width":1020,"height":685,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/matt-wojtas-i69E6cGPLV0-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-typeerror-int-object-is-not-callable\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-int-object-is-not-callable\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python TypeError: \u2018int\u2019 object is not callable Solution","datePublished":"2020-08-14T05:56:10+00:00","dateModified":"2023-12-01T11:57:47+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-int-object-is-not-callable\/"},"wordCount":602,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-int-object-is-not-callable\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/matt-wojtas-i69E6cGPLV0-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-int-object-is-not-callable\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-int-object-is-not-callable\/","url":"https:\/\/careerkarma.com\/blog\/python-typeerror-int-object-is-not-callable\/","name":"Python TypeError: \u2018int\u2019 object is not callable Solution | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-int-object-is-not-callable\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-int-object-is-not-callable\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/matt-wojtas-i69E6cGPLV0-unsplash.jpg","datePublished":"2020-08-14T05:56:10+00:00","dateModified":"2023-12-01T11:57:47+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"On Career Karma, learn about the Python TypeError: \u2018int\u2019 object is not callable, how the error works, and how to solve the error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-int-object-is-not-callable\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-int-object-is-not-callable\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-int-object-is-not-callable\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/matt-wojtas-i69E6cGPLV0-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/matt-wojtas-i69E6cGPLV0-unsplash.jpg","width":1020,"height":685},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-int-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: \u2018int\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\/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\/21174","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=21174"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21174\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/21175"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=21174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=21174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=21174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}