{"id":23170,"date":"2020-09-25T11:29:05","date_gmt":"2020-09-25T18:29:05","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=23170"},"modified":"2023-12-01T04:00:24","modified_gmt":"2023-12-01T12:00:24","slug":"python-syntaxerror-break-outside-loop","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/","title":{"rendered":"Python SyntaxError: \u2018break\u2019 outside loop Solution"},"content":{"rendered":"\n<p><a href=\"https:\/\/careerkarma.com\/blog\/python-break-and-continue\/\">A break statement instructs Python to exit a loop<\/a>. If you use a break statement outside of a loop, for instance, in an if statement without a parent loop, you\u2019ll encounter the \u201cSyntaxError: \u2018break\u2019 outside loop\u201d error in your code.<br><\/p>\n\n\n\n<p>In this guide, we\u2019re going to discuss what this error means and why you may see it. We\u2019ll explore an example of this error so you can learn how to fix the error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SyntaxError: \u2018break\u2019 outside loop<\/h2>\n\n\n\n<p>The Python break statement acts as a \u201cbreak\u201d in a <a href=\"https:\/\/careerkarma.com\/blog\/python-for-loop\/\">for loop<\/a> or a <a href=\"https:\/\/careerkarma.com\/blog\/do-while-python\/\">while loop<\/a>. It stops a loop from executing for any further iterations.<br><\/p>\n\n\n\n<p>Break statements are usually enclosed within an if statement that exists in a loop. In such a case, a programmer can tell a loop to stop if a particular condition is met.<br><\/p>\n\n\n\n<p>A break statement can only be used inside a loop. This is because the purpose of a break statement is to stop a loop. You can use a break statement inside an if statement, but only if that if statement is inside a loop.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An Example Scenario<\/h2>\n\n\n\n<p>Let\u2019s write a program that validates a username for a game. A username must be under twelve characters long to be valid. A username must not contain any spaces.<br><\/p>\n\n\n\n<p>To validate our username, we\u2019re going to use two if statements. To start, let\u2019s ask a user to choose a username for our game 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>username = input(&quot;Enter your new username: &quot;)<\/pre><\/div>\n\n\n\n<p>Next, let\u2019s use an <a href=\"https:\/\/careerkarma.com\/blog\/python-if-else\/\">if statement<\/a> to check whether our username is less than 12 characters long:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>if len(username) &lt; 12:\n\tprint(&quot;This username is the right number of characters.&quot;)\nelse:\n\tbreak<\/pre><\/div>\n\n\n\n<p>If the username a user inserts into the program is fewer than 12 characters, our program prints a message to the console informing us that the username is of the correct length. Otherwise, a break statement will run.<br><\/p>\n\n\n\n<p>Next, let\u2019s validate whether that the username does not contain a space:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>if &quot; &quot; not in username:\n\tprint(&quot;This username is valid.&quot;)\nelse:\n\tbreak<\/pre><\/div>\n\n\n\n<p>We use an <code>if...in<\/code> statement to check for a character in the \u201cusername\u201d string. We check for a blank space. This blank space is enclosed within the two quotation marks in our <code>if<\/code> statement.<br><\/p>\n\n\n\n<p>If a username contains a space, a break statement executes. The break statement is part of the <code>else<\/code> statement in our code.<br><\/p>\n\n\n\n<p>Let\u2019s run our code and see what happens:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>  File &quot;main.py&quot;, line 6\n\tbreak\n\t^\nSyntaxError: 'break' outside loop<\/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>We\u2019ve used a break statement to halt our program if one of our criteria is not met when validating a user&#8217;s username.<br><\/p>\n\n\n\n<p>This causes an error because the break statement is not designed to start a break anywhere in a program. The break statement only stops a loop from executing further.<br><\/p>\n\n\n\n<p>To fix our code, we need to remove the break statements. We can replace them with an exception that stops our program and provides an error message:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>if len(username) &lt; 12:\n\tprint(&quot;This username is the right number of characters.&quot;)\nelse:\n\traise Exception(&quot;Your username must be under twelve characters.&quot;)\n\nif &quot; &quot; not in username:\n\tprint(&quot;This username is valid.&quot;)\nelse:\n\traise Exception(&quot;Your username cannot contain space.s&quot;)<\/pre><\/div>\n\n\n\n<p>If the length of a username is equal to or greater than 12, or if a username contains a space, our program will raise an exception. This exception will stop our program from continuing.<br><\/p>\n\n\n\n<p>Let\u2019s run our code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Enter your new username: bill3\nThis username is the right number of characters\nThis username is valid<\/pre><\/div>\n\n\n\n<p>Our code runs successfully if our username is valid. Let\u2019s see what happens if we enter an invalid username:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Enter your new username: bill 3\nThis username is the right number of characters\nTraceback (most recent call last):\n  File &quot;main.py&quot;, line 11, in &lt;module&gt;\n\traise Exception(&quot;Your username cannot contain spaces&quot;)\nException: Your username cannot contain spaces<\/pre><\/div>\n\n\n\n<p>Our code returns an exception. Alternatively, we could have used print statements to inform the user that their username was incorrect. This would only be suitable if we wanted our program to continue, or if we had a loop that ran until a username validated successfully.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The \u201cSyntaxError: \u2018break\u2019 outside loop\u201d error is raised when you use a break statement outside of a loop.<br><\/p>\n\n\n\n<p>To solve this error, replace any break statements with a suitable alternative. To present a user with a message, you can use a <code>print()<\/code> statement. To halt execution of your program when a condition is met, you can raise an exception.<\/p>\n","protected":false},"excerpt":{"rendered":"A break statement instructs Python to exit a loop. If you use a break statement outside of a loop, for instance, in an if statement without a parent loop, you\u2019ll encounter the \u201cSyntaxError: \u2018break\u2019 outside loop\u201d error in your code. In this guide, we\u2019re going to discuss what this error means and why you may&hellip;","protected":false},"author":240,"featured_media":20182,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-23170","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 SyntaxError: \u2018break\u2019 outside loop Solution | Career Karma<\/title>\n<meta name=\"description\" content=\"On Career Karma, learn the cause of and the solution to the Python SyntaxError: \u2018break\u2019 outside loop 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-syntaxerror-break-outside-loop\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python SyntaxError: \u2018break\u2019 outside loop Solution\" \/>\n<meta property=\"og:description\" content=\"On Career Karma, learn the cause of and the solution to the Python SyntaxError: \u2018break\u2019 outside loop error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/\" \/>\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-09-25T18:29:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:00:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/maxwell-nelson-KXkgOigCqj0-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"669\" \/>\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-syntaxerror-break-outside-loop\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python SyntaxError: \u2018break\u2019 outside loop Solution\",\"datePublished\":\"2020-09-25T18:29:05+00:00\",\"dateModified\":\"2023-12-01T12:00:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/\"},\"wordCount\":630,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/maxwell-nelson-KXkgOigCqj0-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/\",\"name\":\"Python SyntaxError: \u2018break\u2019 outside loop Solution | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/maxwell-nelson-KXkgOigCqj0-unsplash.jpg\",\"datePublished\":\"2020-09-25T18:29:05+00:00\",\"dateModified\":\"2023-12-01T12:00:24+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"On Career Karma, learn the cause of and the solution to the Python SyntaxError: \u2018break\u2019 outside loop error.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/maxwell-nelson-KXkgOigCqj0-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/maxwell-nelson-KXkgOigCqj0-unsplash.jpg\",\"width\":1020,\"height\":669},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/#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 SyntaxError: \u2018break\u2019 outside loop 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 SyntaxError: \u2018break\u2019 outside loop Solution | Career Karma","description":"On Career Karma, learn the cause of and the solution to the Python SyntaxError: \u2018break\u2019 outside loop 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-syntaxerror-break-outside-loop\/","og_locale":"en_US","og_type":"article","og_title":"Python SyntaxError: \u2018break\u2019 outside loop Solution","og_description":"On Career Karma, learn the cause of and the solution to the Python SyntaxError: \u2018break\u2019 outside loop error.","og_url":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-09-25T18:29:05+00:00","article_modified_time":"2023-12-01T12:00:24+00:00","og_image":[{"width":1020,"height":669,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/maxwell-nelson-KXkgOigCqj0-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-syntaxerror-break-outside-loop\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python SyntaxError: \u2018break\u2019 outside loop Solution","datePublished":"2020-09-25T18:29:05+00:00","dateModified":"2023-12-01T12:00:24+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/"},"wordCount":630,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/maxwell-nelson-KXkgOigCqj0-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/","url":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/","name":"Python SyntaxError: \u2018break\u2019 outside loop Solution | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/maxwell-nelson-KXkgOigCqj0-unsplash.jpg","datePublished":"2020-09-25T18:29:05+00:00","dateModified":"2023-12-01T12:00:24+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"On Career Karma, learn the cause of and the solution to the Python SyntaxError: \u2018break\u2019 outside loop error.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/maxwell-nelson-KXkgOigCqj0-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/maxwell-nelson-KXkgOigCqj0-unsplash.jpg","width":1020,"height":669},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-syntaxerror-break-outside-loop\/#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 SyntaxError: \u2018break\u2019 outside loop 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\/23170","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=23170"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/23170\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/20182"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=23170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=23170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=23170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}