{"id":12854,"date":"2020-12-03T21:55:27","date_gmt":"2020-12-04T05:55:27","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=12854"},"modified":"2023-12-01T04:05:36","modified_gmt":"2023-12-01T12:05:36","slug":"python-return","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-return\/","title":{"rendered":"Python Return: A Step-By-Step Guide"},"content":{"rendered":"\n<p>The Python return statement instructs Python to continue executing a main program. You can use the return statement to send a value back to the main program, such as a string or a list.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Functions are blocks of instructions that perform a specific task in programming. Once a function has been declared, it can be reused multiple times. The main benefit of using functions is that it can reduce the number of lines of code you write. <\/p>\n\n\n\n<p>When you\u2019re working with functions in Python, you will encounter the <em>return<\/em> statement. This statement stops a function from executing and returns values from a function to the main program.<\/p>\n\n\n\n<p>In this tutorial, we are going to discuss how the <em>return<\/em> statement works and using return to send values to a main program.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Function Refresher<\/h2>\n\n\n\n<p>Python includes a number of built-in functions\u2014such as <em>print()<\/em>, <em>str()<\/em>, and <em>len()<\/em>\u2014which perform specific tasks.<\/p>\n\n\n\n<p>You can declare your own <a href=\"https:\/\/careerkarma.com\/blog\/python-functions\/\">Python function<\/a> using the <em>def<\/em> keyword. After using the <em>def<\/em> keyword, you should state the name of your function. Then, you should specify by a set of parentheses. The parenthesis can hold any parameters that you want your function to accept.<\/p>\n\n\n\n<p>Here\u2019s the syntax for declaring a function in Python:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>def example_function():\n  yourcodehere<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Python Return<\/h2>\n\n\n\n<p>The Python <em>return<\/em> keyword exits a function and instructs Python to continue executing the main program. The return keyword can send a value back to the main program. A value could be a string, a tuple, or any other object.<\/p>\n\n\n\n<p>This is useful because it allows us to process data within a function. Then, we can return the data to our main program, so we can use it outside our function.<\/p>\n\n\n\n<p>Data processed within a function is only accessible within the function. This is only the case unless you use the <em>return<\/em> statement to send the data elsewhere in the program.<\/p>\n\n\n\n<p>Here\u2019s the syntax for the return keyword:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>def example_function():\n\treturn &quot;Example&quot;<\/pre><\/div>\n\n\n\n<p>The <em>return<\/em> keyword can appear anywhere within a function, and when the code executes the return statement, the function will be exited.<\/p>\n\n\n\n<p>The return statement returns a value to the rest of the program, but it can also be used alone. If no expression is defined after the return statement, <em>None<\/em> is returned. Here\u2019s an example of this in action:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>def example_function():\n\treturn\n\nexample_function()<\/pre><\/div>\n\n\n\n<p>Our code returns: <em>None<\/em>.<\/p>\n\n\n\n<p>You may decide not to specify a value if you only want a function to stop executing after a particular point. This is a less common use case of the Python return statement.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Return Python: An Example<\/h2>\n\n\n\n<p>Say that we are operating a restaurant. We want to create a program that returns the cost of the sandwich meals we have on the menu. This task should be contained within a function because we intend to use it more than once.<\/p>\n\n\n\n<p>The waitress should enter the name of the sandwich a customer has ordered, and be presented with the price of the sandwich. We could accomplish this task using the following code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>sandwich = &quot;Ham and Cheese&quot;\n\ndef calculate_price(product):\n\tif product == &quot;Ham and Cheese&quot;:\n\t\treturn 2.50\n\telif product == &quot;Tuna and Cucumber&quot;:\n\t\treturn 2.25\n\telif product == &quot;Egg Mayo&quot;:\n\t\treturn 2.25\n\telif product == &quot;Chicken Club&quot;:\n\t\treturn 2.75\n\telse:\n\t\treturn 2.50\n\ncalculate_price(sandwich)<\/pre><\/div>\n\n\n\n<p>Let&#8217;s run our program and see what happens:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>2.50<\/pre><\/div>\n\n\n\n<p>On the first line of code, we declare the name of the sandwich whose price we want to find out. In this case, our <em>sandwich<\/em> <a href=\"https:\/\/careerkarma.com\/blog\/python-variables\/\">Python variable<\/a> stores the value <em>Ham and Cheese<\/em>.<\/p>\n\n\n\n<p>Next, we declare a function called <em>calculate_price()<\/em> which accepts one parameter: the name of the sandwich the customer would like to purchase. We have used <a href=\"https:\/\/careerkarma.com\/blog\/python-if-else\/\">Python if statements<\/a> to check the name of the product against our list of sandwiches. When the product name is found, our program returns the price it has defined.<\/p>\n\n\n\n<p>Here are the potential <a href=\"https:\/\/careerkarma.com\/blog\/python-float\/\">Python floating-point values<\/a> our program can return:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>&#8220;Ham and Cheese&#8221;: 2.50<\/li><li>&#8220;Chicken Club&#8221;: 2.75<\/li><li>Another sandwich: 2.50<\/li><\/ul>\n\n\n\n<p>On the final line, we call our <em>calculate_price()<\/em> method and pass the sandwich variable as an argument. When our <em>calculate_price()<\/em> method is called, our program executes the method and returns the price for the sandwich we have specified.<\/p>\n\n\n\n<p>In this case, the sandwich our customer has ordered is <em>Ham and Cheese<\/em>, so our program returns 2.50.&nbsp;<\/p>\n\n\n\n<p>As soon as the <em>return<\/em> statement is executed, our function stops and our program continues to run.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Return in Python: Another Example<\/h3>\n\n\n\n<p>Let\u2019s use another example of the <em>return<\/em> statement to illustrate how it works. Say that we are creating a program that calculates the change a customer is due. We could accomplish this task using the following code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>price = 2.50\n\ndef calculate_change(amount_given):\n\treturn amount_given - price\n\ncalculate_change(4.00)<\/pre><\/div>\n\n\n\n<p>Our code returns: <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>1.50<\/pre><\/div>\n\n\n\n<p>We declared a function called <em>calculate_change<\/em> that subtracts the price of the sandwich from the amount given by the customer. In this case, the price of the sandwich is $2.50, and the user has given the waitress $4.00. So, our program returns $1.50.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The return keyword in Python exits a function and tells Python to run the rest of the main program. A return keyword can send a value back to the main program.<\/p>\n\n\n\n<p>While values may have been defined in a function, you can send them back to your main program and read them throughout your code.<\/p>\n\n\n\n<p>In this tutorial, we delved into the basics of the Python return statement. We also walked through two examples of Python functions that utilized the return keyword to illustrate how the statement works.<\/p>\n\n\n\n<p>For courses, learning resources, and more information about Python, check out our complete <a href=\"https:\/\/careerkarma.com\/blog\/how-to-learn-python\/\">How to Learn Python guide<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"The Python return statement instructs Python to continue executing a main program. You can use the return statement to send a value back to the main program, such as a string or a list. Functions are blocks of instructions that perform a specific task in programming. Once a function has been declared, it can be&hellip;","protected":false},"author":240,"featured_media":12855,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-12854","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 Return: A Step-By-Step Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"The Python return keyword is used by coders to exit a function and return a value to the main program. Learn how to use the return keyword in Python on Career Karma.\" \/>\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-return\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Return: A Step-By-Step Guide\" \/>\n<meta property=\"og:description\" content=\"The Python return keyword is used by coders to exit a function and return a value to the main program. Learn how to use the return keyword in Python on Career Karma.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-return\/\" \/>\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-12-04T05:55:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:05:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-using-macbook-374720.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"667\" \/>\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=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-return\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-return\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python Return: A Step-By-Step Guide\",\"datePublished\":\"2020-12-04T05:55:27+00:00\",\"dateModified\":\"2023-12-01T12:05:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-return\/\"},\"wordCount\":884,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-return\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-using-macbook-374720.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-return\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-return\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-return\/\",\"name\":\"Python Return: A Step-By-Step Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-return\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-return\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-using-macbook-374720.jpg\",\"datePublished\":\"2020-12-04T05:55:27+00:00\",\"dateModified\":\"2023-12-01T12:05:36+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The Python return keyword is used by coders to exit a function and return a value to the main program. Learn how to use the return keyword in Python on Career Karma.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-return\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-return\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-return\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-using-macbook-374720.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-using-macbook-374720.jpg\",\"width\":1000,\"height\":667},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-return\/#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 Return: A Step-By-Step Guide\"}]},{\"@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 Return: A Step-By-Step Guide | Career Karma","description":"The Python return keyword is used by coders to exit a function and return a value to the main program. Learn how to use the return keyword in Python on Career Karma.","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-return\/","og_locale":"en_US","og_type":"article","og_title":"Python Return: A Step-By-Step Guide","og_description":"The Python return keyword is used by coders to exit a function and return a value to the main program. Learn how to use the return keyword in Python on Career Karma.","og_url":"https:\/\/careerkarma.com\/blog\/python-return\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-12-04T05:55:27+00:00","article_modified_time":"2023-12-01T12:05:36+00:00","og_image":[{"width":1000,"height":667,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-using-macbook-374720.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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/python-return\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-return\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python Return: A Step-By-Step Guide","datePublished":"2020-12-04T05:55:27+00:00","dateModified":"2023-12-01T12:05:36+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-return\/"},"wordCount":884,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-return\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-using-macbook-374720.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-return\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-return\/","url":"https:\/\/careerkarma.com\/blog\/python-return\/","name":"Python Return: A Step-By-Step Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-return\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-return\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-using-macbook-374720.jpg","datePublished":"2020-12-04T05:55:27+00:00","dateModified":"2023-12-01T12:05:36+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The Python return keyword is used by coders to exit a function and return a value to the main program. Learn how to use the return keyword in Python on Career Karma.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-return\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-return\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-return\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-using-macbook-374720.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-using-macbook-374720.jpg","width":1000,"height":667},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-return\/#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 Return: A Step-By-Step Guide"}]},{"@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\/12854","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=12854"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/12854\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/12855"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=12854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=12854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=12854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}