{"id":21250,"date":"2020-08-15T01:53:40","date_gmt":"2020-08-15T08:53:40","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=21250"},"modified":"2023-12-01T03:57:56","modified_gmt":"2023-12-01T11:57:56","slug":"python-typeerror-tuple-object-is-not-callable","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/","title":{"rendered":"Python TypeError: \u2018tuple\u2019 object is not callable Solution"},"content":{"rendered":"\n<p>Tuples are enclosed within parentheses. This can be confusing because function calls also use parenthesis. If you use parentheses to access items from a tuple, or if you forget to separate tuples with a comma, you\u2019ll encounter a \u201cTypeError: &#8216;tuple&#8217; object is not callable\u201d error.<br><\/p>\n\n\n\n<p>In this guide, we talk about what this error means and what causes it. We walk through two examples to help you understand how you can solve this error in your code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">TypeError: \u2018tuple\u2019 object is not callable<\/h2>\n\n\n\n<p><a href=\"https:\/\/careerkarma.com\/blog\/python-tuples\/\">Tuples<\/a> are defined as a list of values that are enclosed within parentheses:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>coffees = (&quot;Macchiato&quot;, &quot;Americano&quot;, &quot;Latte&quot;)<\/pre><\/div>\n\n\n\n<p>The parenthesis distinguishes a tuple from a <a href=\"https:\/\/careerkarma.com\/blog\/python-array\/\">list<\/a> or a <a href=\"https:\/\/careerkarma.com\/blog\/python-add-to-dictionary\/\">dictionary<\/a>, which are enclosed within square brackets and curly braces, respectively.<br><\/p>\n\n\n\n<p>Tuple objects are accessed in the same way as a list item. Indexing syntax lets you retrieve an individual item from a tuple. Items in a tuple cannot be accessed using parenthesis.<br><\/p>\n\n\n\n<p>There are two potential causes for the \u201cTypeError: \u2018tuple\u2019 object is not callable\u201d error:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Defining a list of tuples without separating each tuple with a comma<\/li><li>Using the wrong indexing syntax<\/li><\/ul>\n\n\n\n<p>Let\u2019s walk through each cause individually.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Cause #1: Missing Comma<\/h2>\n\n\n\n<p>The \u201cTypeError: \u2018tuple\u2019 object is not callable\u201d error is sometimes caused by one of the most innocent mistakes you can make: a missing comma.<br><\/p>\n\n\n\n<p>Define a tuple that stores information about a list of coffees sold at a coffee shop:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>coffees = [\n\t(&quot;Americano&quot;, 72, 1.90),\n\t(&quot;Macchiato&quot;, 93, 2.10)\n\t(&quot;Latte&quot;, 127, 2.30)\n]<\/pre><\/div>\n\n\n\n<p>The first value in each tuple is the name of a coffee. The second value is how many were sold yesterday at the cafe. The third value is the price of the coffee.<br><\/p>\n\n\n\n<p>Now, let\u2019s print \u201ccoffees\u201d to the console so we can see its values in our Python shell:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(coffees)<\/pre><\/div>\n\n\n\n<p>Our code returns:<\/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 3, in &lt;module&gt;\n\t(&quot;Macchiato&quot;, 93, 2.10)\nTypeError: 'tuple' object is not callable<\/pre><\/div>\n\n\n\n<p>As we expected, an error is returned. This is because we have forgotten to separate all the tuples in our list of coffees with a comma.<br><\/p>\n\n\n\n<p>When Python sees a set of parenthesis that follows a value, it treats the value as a function to call. In this case, our program sees:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>(&quot;Macchiato&quot;, 93, 2.10)(&quot;Latte&quot;, 127, 2.30)<\/pre><\/div>\n\n\n\n<p>Our program tries to call (\u201cMacchiato\u201d, 93, 2.10) as a function. This is not possible and so our code returns an error.<br><\/p>\n\n\n\n<p>To solve this problem, we need to make sure that all the values in our list of tuples are separated using commas:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>coffees = [\n\t(&quot;Americano&quot;, 72, 1.90),\n\t(&quot;Macchiato&quot;, 93, 2.10),\n\t(&quot;Latte&quot;, 127, 2.30)\n]\n\nprint(coffees)<\/pre><\/div>\n\n\n\n<p>We\u2019ve added a comma after the tuple that stores information on the Macchiato coffee. Let\u2019s try to run our code again:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>[('Americano', 72, 1.9), ('Macchiato', 93, 2.1), ('Latte', 127, 2.3)]<\/pre><\/div>\n\n\n\n<p>Our code successfully prints out our list of tuples.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Cause #2: Incorrect Indexing Syntax<\/h2>\n\n\n\n<p>Here, we write a program that stores information on coffees sold at a coffee shop. Our program will then print out each piece of information about each type of coffee beverage.<br><\/p>\n\n\n\n<p>Start by defining a list of coffees which are stored in tuples:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>coffees = [\n\t(&quot;Americano&quot;, 72, 1.90),\n\t(&quot;Macchiato&quot;, 93, 2.10),\n\t(&quot;Latte&quot;, 127, 2.30)\n]<\/pre><\/div>\n\n\n\n<p>Next, write a <a href=\"https:\/\/careerkarma.com\/blog\/python-for-loop\/\">for loop<\/a> that displays this information on the console:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>for c in coffees:\n\tprint(&quot;Coffee Name: &quot; + str(c(0)))\n\tprint(&quot;Sold Yesterday: &quot; + str(c(1)))\n\tprint(&quot;Price: $&quot; + str(c(2))))<\/pre><\/div>\n\n\n\n<p>This for loop should print out each value from all the tuples in the \u201ccoffees\u201d list. We convert each value to a string so that we can concatenate them to the labels in our <a href=\"https:\/\/careerkarma.com\/blog\/python-print-without-new-line\/\">print() statements<\/a>.<br><\/p>\n\n\n\n<p>Run our code and see what happens:<\/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 8, in &lt;module&gt;\n\tprint(&quot;Coffee Name: &quot; + c(0))\nTypeError: 'tuple' object is not callable<\/pre><\/div>\n\n\n\n<p>Our code returns an error.<br><\/p>\n\n\n\n<p>This error is caused because we are trying to access each item from our tuple using curly brackets. While tuples are defined using curly brackets, their contents are made accessible using traditional indexing syntax.<br><\/p>\n\n\n\n<p>To solve this problem, we have to use square brackets to retrieve values from our tuples:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>for c in coffees:\n\tprint(&quot;Coffee Name: &quot; + str(c[0]))\n\tprint(&quot;Sold Yesterday: &quot; + str(c[1]))\n\tprint(&quot;Price: $&quot; + str(c[2]))<\/pre><\/div>\n\n\n\n<p>Let\u2019s execute our code with this new syntax:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Coffee Name: Americano\nSold Yesterday: 72\nPrice: $1.9\nCoffee Name: Macchiato\nSold Yesterday: 93\nPrice: $2.1\nCoffee Name: Latte\nSold Yesterday: 127\nPrice: $2.3<\/pre><\/div>\n\n\n\n<p>Our code successfully prints out information about each coffee.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The \u201cTypeError: \u2018tuple\u2019 object is not callable\u201d error is raised when you try to call a tuple as a function. This can happen if you use the wrong syntax to access an item from a tuple or if you forget to separate two tuples with a comma.<br><\/p>\n\n\n\n<p>Make sure when you access items from a tuple you use square brackets. Also ensure that all tuples in your code that appear in a list are separated with a comma.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to solve this error like a <a href=\"https:\/\/careerkarma.com\/blog\/python-vs-java\/\">Python pro<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"Tuples are enclosed within parentheses. This can be confusing because function calls also use parenthesis. If you use parentheses to access items from a tuple, or if you forget to separate tuples with a comma, you\u2019ll encounter a \u201cTypeError: 'tuple' object is not callable\u201d error. In this guide, we talk about what this error means&hellip;","protected":false},"author":240,"featured_media":21251,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-21250","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: \u2018tuple\u2019 object is not callable Solution | Career Karma<\/title>\n<meta name=\"description\" content=\"On Career Karma, learn about the Python TypeError: \u2018tuple\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-tuple-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: \u2018tuple\u2019 object is not callable Solution\" \/>\n<meta property=\"og:description\" content=\"On Career Karma, learn about the Python TypeError: \u2018tuple\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-tuple-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-15T08:53:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:57:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nordwood-themes-bJjsKbToY34-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=\"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-tuple-object-is-not-callable\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python TypeError: \u2018tuple\u2019 object is not callable Solution\",\"datePublished\":\"2020-08-15T08:53:40+00:00\",\"dateModified\":\"2023-12-01T11:57:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/\"},\"wordCount\":685,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nordwood-themes-bJjsKbToY34-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/\",\"name\":\"Python TypeError: \u2018tuple\u2019 object is not callable Solution | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nordwood-themes-bJjsKbToY34-unsplash.jpg\",\"datePublished\":\"2020-08-15T08:53:40+00:00\",\"dateModified\":\"2023-12-01T11:57:56+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"On Career Karma, learn about the Python TypeError: \u2018tuple\u2019 object is not callable, how the error works, and how to solve the error.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nordwood-themes-bJjsKbToY34-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nordwood-themes-bJjsKbToY34-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-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: \u2018tuple\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: \u2018tuple\u2019 object is not callable Solution | Career Karma","description":"On Career Karma, learn about the Python TypeError: \u2018tuple\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-tuple-object-is-not-callable\/","og_locale":"en_US","og_type":"article","og_title":"Python TypeError: \u2018tuple\u2019 object is not callable Solution","og_description":"On Career Karma, learn about the Python TypeError: \u2018tuple\u2019 object is not callable, how the error works, and how to solve the error.","og_url":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-08-15T08:53:40+00:00","article_modified_time":"2023-12-01T11:57:56+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nordwood-themes-bJjsKbToY34-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-tuple-object-is-not-callable\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python TypeError: \u2018tuple\u2019 object is not callable Solution","datePublished":"2020-08-15T08:53:40+00:00","dateModified":"2023-12-01T11:57:56+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/"},"wordCount":685,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nordwood-themes-bJjsKbToY34-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/","url":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/","name":"Python TypeError: \u2018tuple\u2019 object is not callable Solution | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nordwood-themes-bJjsKbToY34-unsplash.jpg","datePublished":"2020-08-15T08:53:40+00:00","dateModified":"2023-12-01T11:57:56+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"On Career Karma, learn about the Python TypeError: \u2018tuple\u2019 object is not callable, how the error works, and how to solve the error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-object-is-not-callable\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nordwood-themes-bJjsKbToY34-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/nordwood-themes-bJjsKbToY34-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-tuple-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: \u2018tuple\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\/21250","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=21250"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21250\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/21251"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=21250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=21250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=21250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}