{"id":21533,"date":"2020-08-22T04:53:16","date_gmt":"2020-08-22T11:53:16","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=21533"},"modified":"2023-12-01T03:58:41","modified_gmt":"2023-12-01T11:58:41","slug":"python-valueerror-could-not-convert-string-to-float","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/","title":{"rendered":"Python valueerror: could not convert string to float Solution"},"content":{"rendered":"\n<p>Python can only convert a valid numerical value to a floating point value. If you try to convert a value that contains a comma, spaces, or certain characters, you encounter an error that says \u201cvalueerror: could not convert string to float\u201d.&nbsp;<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 an example of this error to help you see how to fix it in your code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">valueerror: could not convert string to float<\/h2>\n\n\n\n<p>Python offers a method called <a href=\"https:\/\/careerkarma.com\/blog\/python-float\/\">float()<\/a> that converts a string to a floating-point number.<br><\/p>\n\n\n\n<p>This method is useful if you need to perform a mathematical operation on a value. You cannot perform math on a string; you can perform math on a floating-point.<br><\/p>\n\n\n\n<p>The <code>float()<\/code> method only allows you to convert <a href=\"https:\/\/careerkarma.com\/blog\/python-string-methods\/\">strings<\/a> that appear like floats. This means that you cannot convert a value if:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>A value contains spaces<\/li><li>A value contains a comma<\/li><li>A value contains non-special characters (i.e. \u201cinf\u201d is a special character, but \u201cfd\u201d is not)<\/li><\/ul>\n\n\n\n<p>The \u201cvalueerror: could not convert string to float\u201d error is raised if you fail to meet any one of the three above criteria. This is because Python cannot convert a value to a float unless that value appears in a particular way.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An Example Scenario<\/h2>\n\n\n\n<p>Here, we write a program that converts U.S. Dollars (USD) into Great British Pounds Sterling (GBP).<br><\/p>\n\n\n\n<p>To start, ask a user to <a href=\"https:\/\/careerkarma.com\/blog\/python-input\/\">insert the dollar value<\/a> they want to convert to pounds:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>dollar_value = float(input(&quot;Enter the value you want to convert to GBP: &quot;))<\/pre><\/div>\n\n\n\n<p>We convert the value a user inserts to a floating point number so we can perform a mathematical calculation using the value later on.<br><\/p>\n\n\n\n<p>Next, we set the exchange rate for USD to GBP. At the moment, 1 USD is worth 0.76 GBP:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>exchange_rate = 0.76<\/pre><\/div>\n\n\n\n<p>With these two values, we can calculate how much our USD value is worth in GBP. To do this, we multiply \u201cdollar_value\u201d by \u201cexchange_rate\u201d:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>final_value = dollar_value * exchange_rate\nprint(&quot;{} USD is equal to {} GBP&quot;.format(dollar_value, final_value))<\/pre><\/div>\n\n\n\n<p>We\u2019ve used a <a href=\"https:\/\/careerkarma.com\/blog\/python-f-string\/\">.format() statement<\/a> to create a message that informs the user of how much their USD is worth in GBP. Let\u2019s run our code and see what happens:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Enter the value you want to convert to GBP: 23\n23.0 USD is equal to 17.48 GBP<\/pre><\/div>\n\n\n\n<p>Our code runs successfully. Let\u2019s see what happens if we try to insert a number into our code that is not formatted correctly:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Enter the value you want to convert to GBP: 2,300\nTraceback (most recent call last):\n  File &quot;main.py&quot;, line 1, in &lt;module&gt;\n\tdollar_value = float(input(&quot;Enter the value you want to convert to GBP: &quot;))\nValueError: could not convert string to float: '2,300'<\/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>Our code works when we insert a valid floating-point value into our program. We cannot rely on the fact that every user will do this.<br><\/p>\n\n\n\n<p>When we\u2019ve tried to insert a value in the thousands (2,300), we\u2019ve added a comma. This has made our floating point number invalid.<br><\/p>\n\n\n\n<p>To solve this problem, we can use a \u201c<a href=\"https:\/\/careerkarma.com\/blog\/python-try-except\/\">try&#8230;except<\/a>\u201d block:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>try:\n\tdollar_value = float(input(&quot;Enter the value you want to convert to GBP: &quot;))\n\n\texchange_rate = 0.76\n\n\tfinal_value = dollar_value * exchange_rate\nprint(&quot;{} USD is equal to {} GBP&quot;.format(dollar_value, final_value))\nexcept:\n\tprint(&quot;Please insert a valid number. Currencies cannot contain commas, spaces, or characters.&quot;)<\/pre><\/div>\n\n\n\n<p>Our program will try to run the code in the \u201ctry\u201d block. If our program is unsuccessful, the \u201cexcept\u201d block will be run.<br><\/p>\n\n\n\n<p>Run our code and insert an invalid floating point value.<\/p>\n\n\n\n<p>Our code returns:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Enter the value you want to convert to GBP: 2,300\nPlease insert a valid number. Currencies cannot contain commas, spaces, or characters.<\/pre><\/div>\n\n\n\n<p>Let\u2019s execute our code with a valid value:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Enter the value you want to convert to GBP: 23\n23.0 USD is equal to 17.48 GBP<\/pre><\/div>\n\n\n\n<p>In both cases, our code works successfully. In the first case, where we inserted an invalid value into our program, the contents of our \u201cexcept\u201d block executed. In the second case, our program calculated how much 23 USD is equal to in GBP.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The \u201cvalueerror: could not convert string to float\u201d error is raised when you try to convert a string that is not formatted as a floating point number to a float.<br><\/p>\n\n\n\n<p>You can solve this error by adding a handler that makes sure your code does not continue running if the user inserts an invalid value. Alternatively, you can add in additional input validation before converting a number to a <code>float()<\/code> to make sure a number is valid.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to fix this common Python error in your code.<\/p>\n","protected":false},"excerpt":{"rendered":"Python can only convert a valid numerical value to a floating point value. If you try to convert a value that contains a comma, spaces, or certain characters, you encounter an error that says \u201cvalueerror: could not convert string to float\u201d.&nbsp; In this guide, we talk about what this error means and why it is&hellip;","protected":false},"author":240,"featured_media":17859,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-21533","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 valueerror: could not convert string to float Solution | CK<\/title>\n<meta name=\"description\" content=\"On Career Karma, learn about the Python valueerror: could not convert string to float, 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-valueerror-could-not-convert-string-to-float\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python valueerror: could not convert string to float Solution\" \/>\n<meta property=\"og:description\" content=\"On Career Karma, learn about the Python valueerror: could not convert string to float, how the error works, and how to solve the error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-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-08-22T11:53:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:58:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/kaitlyn-baker-vZJdYl5JVXY-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-valueerror-could-not-convert-string-to-float\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python valueerror: could not convert string to float Solution\",\"datePublished\":\"2020-08-22T11:53:16+00:00\",\"dateModified\":\"2023-12-01T11:58:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/\"},\"wordCount\":626,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/kaitlyn-baker-vZJdYl5JVXY-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/\",\"name\":\"Python valueerror: could not convert string to float Solution | CK\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/kaitlyn-baker-vZJdYl5JVXY-unsplash.jpg\",\"datePublished\":\"2020-08-22T11:53:16+00:00\",\"dateModified\":\"2023-12-01T11:58:41+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"On Career Karma, learn about the Python valueerror: could not convert string to float, how the error works, and how to solve the error.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/kaitlyn-baker-vZJdYl5JVXY-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/kaitlyn-baker-vZJdYl5JVXY-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-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 valueerror: could not convert string to float 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 valueerror: could not convert string to float Solution | CK","description":"On Career Karma, learn about the Python valueerror: could not convert string to float, 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-valueerror-could-not-convert-string-to-float\/","og_locale":"en_US","og_type":"article","og_title":"Python valueerror: could not convert string to float Solution","og_description":"On Career Karma, learn about the Python valueerror: could not convert string to float, how the error works, and how to solve the error.","og_url":"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-08-22T11:53:16+00:00","article_modified_time":"2023-12-01T11:58:41+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/kaitlyn-baker-vZJdYl5JVXY-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-valueerror-could-not-convert-string-to-float\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python valueerror: could not convert string to float Solution","datePublished":"2020-08-22T11:53:16+00:00","dateModified":"2023-12-01T11:58:41+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/"},"wordCount":626,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/kaitlyn-baker-vZJdYl5JVXY-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/","url":"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/","name":"Python valueerror: could not convert string to float Solution | CK","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/kaitlyn-baker-vZJdYl5JVXY-unsplash.jpg","datePublished":"2020-08-22T11:53:16+00:00","dateModified":"2023-12-01T11:58:41+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"On Career Karma, learn about the Python valueerror: could not convert string to float, how the error works, and how to solve the error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-float\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/kaitlyn-baker-vZJdYl5JVXY-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/kaitlyn-baker-vZJdYl5JVXY-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-valueerror-could-not-convert-string-to-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 valueerror: could not convert string to float 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\/21533","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=21533"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21533\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/17859"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=21533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=21533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=21533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}