{"id":20584,"date":"2020-07-31T00:17:41","date_gmt":"2020-07-31T07:17:41","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=20584"},"modified":"2023-12-01T03:57:11","modified_gmt":"2023-12-01T11:57:11","slug":"python-typeerror-cant-multiply-sequence-by-non-int-of-type-float","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/","title":{"rendered":"Python typeerror: can\u2019t multiply sequence by non-int of type \u2018float\u2019 Solution"},"content":{"rendered":"\n<p>While strings can be multiplied by integers to create a repeating sequence, strings cannot be multiplied by floats. Otherwise, Python returns an error.<br><\/p>\n\n\n\n<p>In this article, we\u2019re going to talk about the \u201ctypeerror: can t multiply sequence by non-int of type \u2018float\u2019\u201d error and why it is raised. We\u2019ll walk through an example scenario with this error present so that we can solve it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">typeerror: can\u2019t multiply sequence by non-int of type \u2018float\u2019<\/h2>\n\n\n\n<p>Let\u2019s take a look at our error message and see what it tells us:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>typeerror: can't multiply sequence by non-int of type 'float'<\/pre><\/div>\n\n\n\n<p>Our error is a TypeError. This means that we\u2019re trying to perform an operation on a value whose data type does not support that operation. For instance, if you try to concatenate an integer and a string, a type error is raised.<br><\/p>\n\n\n\n<p>The error is telling us that we\u2019re multiplying a sequence, also known as a <a href=\"https:\/\/careerkarma.com\/blog\/what-python-is-used-for\/\">string<\/a>, by a <a href=\"https:\/\/careerkarma.com\/blog\/python-float\/\">floating-point number<\/a>. This is not supported in Python.<br><\/p>\n\n\n\n<p>There are two types of numbers in Python: integers and floating-point numbers. Integers are whole numbers whereas floating-point numbers are decimals.<br><\/p>\n\n\n\n<p>Strings can be multiplied by integers. Consider this example:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>scone = &quot;Scone&quot;\nprint(scone * 3)<\/pre><\/div>\n\n\n\n<p>Our code returns: SconeSconeScone. When you multiply a string by an <a href=\"https:\/\/careerkarma.com\/blog\/python-string-to-int\/\">integer<\/a>, it creates a repeating sequence of that string.<br><\/p>\n\n\n\n<p>Strings cannot be multiplied by floating point numbers. If you tried to multiply our \u201cscone\u201d string by 3.3, what would Python do? You can\u2019t have .3 of a string. Hence, an error is returned.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An Example Scenario<\/h2>\n\n\n\n<p>This error is commonly found when working with <a href=\"https:\/\/careerkarma.com\/blog\/python-string-to-int\/\">input() statements<\/a>. Let\u2019s take a look at a program that calculates a 5% discount on a purchase made at a store.<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>value = input(&quot;How much has the customer spent? &quot;)\ndiscount = 0.05\n\nfinal_cost = value - (value * discount)\nprint(round(final_cost, 2))<\/pre><\/div>\n\n\n\n<p>We\u2019ve declared a <a href=\"https:\/\/careerkarma.com\/blog\/python-variables\/\">variable<\/a> called value which stores how much the customer has spent on a purchase. This value is collected from the user using the input() method.<br><\/p>\n\n\n\n<p>Next, we have declared a variable called discount. This stores the 5% discount that we are going to apply to purchases as a decimal number. We then calculate the percentage discount by multiplying \u201cvalue\u201d and \u201cdiscount\u201d together. We then subtract this number from the total cost of the product.<br><\/p>\n\n\n\n<p>We use the <a href=\"https:\/\/careerkarma.com\/blog\/python-round\/\">round() method<\/a> to round the value of \u201cfinal_cost\u201d to two decimal places. Then, we print this value to the console.<br><\/p>\n\n\n\n<p>Let\u2019s try to run our code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>How much has the customer spent? 12.99\nTraceback (most recent call last):\n  File &quot;main.py&quot;, line 4, in &lt;module&gt;\n\tfinal_cost = value - (value * discount)\nTypeError: can't multiply sequence by non-int of type 'float'<\/pre><\/div>\n\n\n\n<p>Oh no. An error has been returned. Let\u2019s fix this error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Solution<\/h2>\n\n\n\n<p>The error \u201ctypeerror: can&#8217;t multiply sequence by non-int of type \u2018float\u2019\u201d is caused by multiplying a string and a floating-point number together.<br><\/p>\n\n\n\n<p>This error occurred in our earlier program because input() returns a string. This means that even if we insert a number into our program it will be stored as a string.<br><\/p>\n\n\n\n<p>To solve this problem, we can convert the value the user inserts into the program to a floating-point number. We can do this using the <a href=\"https:\/\/careerkarma.com\/blog\/python-float\/\">float() method<\/a>:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>value = float(input(&quot;How much has the customer spent? &quot;))\ndiscount = 0.05\n\nfinal_cost = value - (value * discount)\nprint(round(final_cost, 2))<\/pre><\/div>\n\n\n\n<p>The float() method is surrounded by the input() method. The float() method converts the string value returned by input() into a floating-point number. This allows us to multiply \u201cvalue\u201d and \u201cdiscount\u201d because they are both numbers.<br><\/p>\n\n\n\n<p>Let\u2019s try to run our code again:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>How much has the customer spent? 12.99\n12.34<\/pre><\/div>\n\n\n\n<p>Our code works! Our program tells us that a 5% discount on the value of a $12.99 purchase makes the cost of the final product $12.34.<\/p>\n\n\n\n<iframe loading=\"lazy\" frameborder=\"0\" width=\"100%\" height=\"400px\" src=\"https:\/\/repl.it\/@careerkarma\/cant-multiply-sequence-by-non-int-of-type-float?lite=true\"><\/iframe>\n<br>\n<br>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Strings cannot be multiplied by floating-point numbers. This is because multiplying strings by integer numbers creates a repetitive sequence of the string. This is not possible using a floating-point because it would result in multiplying a string by decimal values.<br><\/p>\n\n\n\n<p>To solve the \u201ctypeerror: can&#8217;t multiply sequence by non-int of type \u2018float\u2019\u201d error, make sure that all string values are converted to a floating-point number if they are being used as part of a calculation.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to solve this error like a <a href=\"https:\/\/careerkarma.com\/blog\/python-2-vs-python-3\/\">Python expert<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"While strings can be multiplied by integers to create a repeating sequence, strings cannot be multiplied by floats. Otherwise, Python returns an error. In this article, we\u2019re going to talk about the \u201ctypeerror: can t multiply sequence by non-int of type \u2018float\u2019\u201d error and why it is raised. We\u2019ll walk through an example scenario with&hellip;","protected":false},"author":240,"featured_media":20585,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-20584","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 \u2018float\u2019<\/title>\n<meta name=\"description\" content=\"On Career Karma, learn about the Python typeerror: can\u2019t multiply sequence by non-int of type \u2018float\u2019 error, 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-cant-multiply-sequence-by-non-int-of-type-float\/\" \/>\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 \u2018float\u2019 Solution\" \/>\n<meta property=\"og:description\" content=\"On Career Karma, learn about the Python typeerror: can\u2019t multiply sequence by non-int of type \u2018float\u2019 error, how the error works, and how to solve the error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/\" \/>\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-07-31T07:17:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:57:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/eugene-chystiakov-X3aWvLgj2-w-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-cant-multiply-sequence-by-non-int-of-type-float\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python typeerror: can\u2019t multiply sequence by non-int of type \u2018float\u2019 Solution\",\"datePublished\":\"2020-07-31T07:17:41+00:00\",\"dateModified\":\"2023-12-01T11:57:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/\"},\"wordCount\":646,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/eugene-chystiakov-X3aWvLgj2-w-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/\",\"name\":\"TypeError: can\u2019t multiply sequence by non-int of type \u2018float\u2019\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/eugene-chystiakov-X3aWvLgj2-w-unsplash.jpg\",\"datePublished\":\"2020-07-31T07:17:41+00:00\",\"dateModified\":\"2023-12-01T11:57:11+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"On Career Karma, learn about the Python typeerror: can\u2019t multiply sequence by non-int of type \u2018float\u2019 error, how the error works, and how to solve the error.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/eugene-chystiakov-X3aWvLgj2-w-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/eugene-chystiakov-X3aWvLgj2-w-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/#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 \u2018float\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 \u2018float\u2019","description":"On Career Karma, learn about the Python typeerror: can\u2019t multiply sequence by non-int of type \u2018float\u2019 error, 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-cant-multiply-sequence-by-non-int-of-type-float\/","og_locale":"en_US","og_type":"article","og_title":"Python typeerror: can\u2019t multiply sequence by non-int of type \u2018float\u2019 Solution","og_description":"On Career Karma, learn about the Python typeerror: can\u2019t multiply sequence by non-int of type \u2018float\u2019 error, how the error works, and how to solve the error.","og_url":"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-07-31T07:17:41+00:00","article_modified_time":"2023-12-01T11:57:11+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/eugene-chystiakov-X3aWvLgj2-w-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-cant-multiply-sequence-by-non-int-of-type-float\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python typeerror: can\u2019t multiply sequence by non-int of type \u2018float\u2019 Solution","datePublished":"2020-07-31T07:17:41+00:00","dateModified":"2023-12-01T11:57:11+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/"},"wordCount":646,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/eugene-chystiakov-X3aWvLgj2-w-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/","url":"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/","name":"TypeError: can\u2019t multiply sequence by non-int of type \u2018float\u2019","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/eugene-chystiakov-X3aWvLgj2-w-unsplash.jpg","datePublished":"2020-07-31T07:17:41+00:00","dateModified":"2023-12-01T11:57:11+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"On Career Karma, learn about the Python typeerror: can\u2019t multiply sequence by non-int of type \u2018float\u2019 error, how the error works, and how to solve the error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/eugene-chystiakov-X3aWvLgj2-w-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/eugene-chystiakov-X3aWvLgj2-w-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-typeerror-cant-multiply-sequence-by-non-int-of-type-float\/#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 \u2018float\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\/20584","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=20584"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/20584\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/20585"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=20584"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=20584"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=20584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}