{"id":21535,"date":"2020-08-22T05:03:10","date_gmt":"2020-08-22T12:03:10","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=21535"},"modified":"2023-12-01T03:58:42","modified_gmt":"2023-12-01T11:58:42","slug":"typeerror-cant-multiply-sequence-by-non-int-of-type-str","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/","title":{"rendered":"Python TypeError: can\u2019t multiply sequence by non-int of type \u2018str\u2019 Solution"},"content":{"rendered":"\n<p>You can <a href=\"https:\/\/careerkarma.com\/blog\/python-math-operators\/\">multiply two numbers together in Python<\/a>. You can also multiply a number by a string. This returns a sequence of a string that repeats a specific number of times.<br><\/p>\n\n\n\n<p>If you try to multiply a string by another string, you encounter the \u201cTypeError: can&#8217;t multiply sequence by non-int of type \u2018str\u2019\u201d error.<br><\/p>\n\n\n\n<p>In this guide, we talk about what this error means and where you may encounter it in your code. We walk through an example of this error to help you figure out how to solve it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">TypeError: can\u2019t multiply sequence by non-int of type \u2018str\u2019<\/h2>\n\n\n\n<p><a href=\"https:\/\/careerkarma.com\/blog\/python-string-methods\/\">Strings are a type of sequence<\/a>. This is because they contain characters over which Python can iterate. Other types of sequences include tuples, dictionaries, and lists.<br><\/p>\n\n\n\n<p>You use the multiplication operator (*) to create a string that repeats the contents of a string. Consider the following code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(&quot;Cakes! &quot; * 2)<\/pre><\/div>\n\n\n\n<p>This code returns: \u201cCakes! Cakes!\u201d. The multiplication operator makes our string repeat twice.<br><\/p>\n\n\n\n<p>You cannot use the multiplication operator to multiply a string by a string. Integers and floating-point numbers are the only values that can be multiplied by values of the same data type. There is no way for Python to interpret multiplying two strings.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An Example Scenario<\/h2>\n\n\n\n<p>Let\u2019s build a program that calculates how much money a restaurant has made on their jam scones on a Thursday afternoon.<br><\/p>\n\n\n\n<p>To start, we need to define the price of a jam scone. We also ask the user to tell us how many jam scones they sold in their last day of business using an <a href=\"https:\/\/careerkarma.com\/blog\/python-input\/\">input() statement<\/a>:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>jam_scone = &quot;1.95&quot;\nsold = input(&quot;How many jam scones did you sell yesterday? &quot;)<\/pre><\/div>\n\n\n\n<p>Next, we multiply these two values together. This will tell us how much money was earned from jam scones on a given day:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>earned_from_scones = jam_scone * sold<\/pre><\/div>\n\n\n\n<p>Now that we know how much was earned from scones, we write a <code>print()<\/code> statement which informs the user of the result of our calculation:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(&quot;You earned ${} from selling scones.&quot;.format(earned_from_scones))<\/pre><\/div>\n\n\n\n<p>The <a href=\"https:\/\/careerkarma.com\/blog\/python-f-string\/\">format() method<\/a> lets us add the value of \u201cearned_from_scones\u201d where our curly braces ({}) appear in our string.<br><\/p>\n\n\n\n<p>We also need to calculate how much profit is made on each scone. We know that we make a 25-cent profit on each scone. To calculate how much profit is made, we use this code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>profit = sold * 0.25\nprint(&quot;You made a ${} profit from selling scones.&quot;.format(profit))<\/pre><\/div>\n\n\n\n<p>This code calculates how much in profit was made from each scone and then prints that value to the console. Let\u2019s run our code and see if it works:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>How many jam scones did you sell yesterday? 17\nTraceback (most recent call last):\n  File &quot;main.py&quot;, line 4, in &lt;module&gt;\n\tearned_from_scones = jam_scone * sold\nTypeError: can't multiply sequence by non-int of type 'str'<\/pre><\/div>\n\n\n\n<p>Our code returns an error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Solution<\/h2>\n\n\n\n<p>Let\u2019s analyze the line of code from our error:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>\tearned_from_scones = jam_scone * sold<\/pre><\/div>\n\n\n\n<p>While this line of code looks fine, there is a problem: we are trying to multiply two string values together. We store \u201cjam_scone\u201d as a string. The <code>input()<\/code> method returns a string which means that <code>sold()<\/code> has a string value.<br><\/p>\n\n\n\n<p>To solve this problem, we need to make sure that both \u201cjam_scone\u201d and \u201csold\u201d are floating points. This lets us perform a mathematical operation on these values.<br><\/p>\n\n\n\n<p>Next, we change how we declare the values of these variables:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>jam_scone = 1.95\nsold = float(input(&quot;How many jam scones did you sell yesterday? &quot;))<\/pre><\/div>\n\n\n\n<p>The value of \u201cjam_scone\u201d is no longer in quotation marks. This shows we have changed \u201cjam_scone\u201d from a string to a float. We have also used the <a href=\"https:\/\/careerkarma.com\/blog\/python-float\/\">float() method<\/a> to convert the value of \u201csold\u201d to a floating-point number.<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>How many jam scones did you sell yesterday? 17\nYou earned $33.15 from selling scones.\nYou made a $4.25 profit from selling scones.<\/pre><\/div>\n\n\n\n<p>Our code works successfully. First, our code asks the user to insert how many scones are sold into the console. Next, our program calculates how much money the store earned from selling scones. Finally, our program calculates the profits generated from scone sales.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The \u201cTypeError: can\u2019t multiply sequence by non-int of type \u2018str\u2019\u201d error occurs if you try to multiply two string values together. You can fix this problem by ensuring that you either multiply two numerical values together or that you only multiply a string by an integer.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to solve this error like a Pythonista!<\/p>\n","protected":false},"excerpt":{"rendered":"You can multiply two numbers together in Python. You can also multiply a number by a string. This returns a sequence of a string that repeats a specific number of times. If you try to multiply a string by another string, you encounter the \u201cTypeError: can't multiply sequence by non-int of type \u2018str\u2019\u201d error. In&hellip;","protected":false},"author":240,"featured_media":19393,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-21535","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>TypeError: can\u2019t multiply sequence by non-int of type \u2018str\u2019 | Career Karma<\/title>\n<meta name=\"description\" content=\"The Python TypeError: can\u2019t multiply sequence by non-int of type \u2018str\u2019 error is raised when you try to multiply two strings. 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\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python TypeError: can\u2019t multiply sequence by non-int of type \u2018str\u2019 Solution\" \/>\n<meta property=\"og:description\" content=\"The Python TypeError: can\u2019t multiply sequence by non-int of type \u2018str\u2019 error is raised when you try to multiply two strings. On Career Karma, learn how to fix this error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/\" \/>\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:03:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:58:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/neonbrand-IhsaTDKzdwg-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\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python TypeError: can\u2019t multiply sequence by non-int of type \u2018str\u2019 Solution\",\"datePublished\":\"2020-08-22T12:03:10+00:00\",\"dateModified\":\"2023-12-01T11:58:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/\"},\"wordCount\":653,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/neonbrand-IhsaTDKzdwg-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/\",\"name\":\"TypeError: can\u2019t multiply sequence by non-int of type \u2018str\u2019 | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/neonbrand-IhsaTDKzdwg-unsplash.jpg\",\"datePublished\":\"2020-08-22T12:03:10+00:00\",\"dateModified\":\"2023-12-01T11:58:42+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The Python TypeError: can\u2019t multiply sequence by non-int of type \u2018str\u2019 error is raised when you try to multiply two strings. On Career Karma, learn how to fix this error.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/neonbrand-IhsaTDKzdwg-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/neonbrand-IhsaTDKzdwg-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/#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: can\u2019t multiply sequence by non-int of type \u2018str\u2019 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":"TypeError: can\u2019t multiply sequence by non-int of type \u2018str\u2019 | Career Karma","description":"The Python TypeError: can\u2019t multiply sequence by non-int of type \u2018str\u2019 error is raised when you try to multiply two strings. 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\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/","og_locale":"en_US","og_type":"article","og_title":"Python TypeError: can\u2019t multiply sequence by non-int of type \u2018str\u2019 Solution","og_description":"The Python TypeError: can\u2019t multiply sequence by non-int of type \u2018str\u2019 error is raised when you try to multiply two strings. On Career Karma, learn how to fix this error.","og_url":"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-08-22T12:03:10+00:00","article_modified_time":"2023-12-01T11:58:42+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/neonbrand-IhsaTDKzdwg-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\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python TypeError: can\u2019t multiply sequence by non-int of type \u2018str\u2019 Solution","datePublished":"2020-08-22T12:03:10+00:00","dateModified":"2023-12-01T11:58:42+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/"},"wordCount":653,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/neonbrand-IhsaTDKzdwg-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/","url":"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/","name":"TypeError: can\u2019t multiply sequence by non-int of type \u2018str\u2019 | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/neonbrand-IhsaTDKzdwg-unsplash.jpg","datePublished":"2020-08-22T12:03:10+00:00","dateModified":"2023-12-01T11:58:42+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The Python TypeError: can\u2019t multiply sequence by non-int of type \u2018str\u2019 error is raised when you try to multiply two strings. On Career Karma, learn how to fix this error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/neonbrand-IhsaTDKzdwg-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/neonbrand-IhsaTDKzdwg-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/typeerror-cant-multiply-sequence-by-non-int-of-type-str\/#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: can\u2019t multiply sequence by non-int of type \u2018str\u2019 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\/21535","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=21535"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21535\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/19393"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=21535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=21535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=21535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}