{"id":20261,"date":"2020-07-25T06:44:13","date_gmt":"2020-07-25T13:44:13","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=20261"},"modified":"2023-12-01T03:56:10","modified_gmt":"2023-12-01T11:56:10","slug":"fibonacci-sequence-python","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/","title":{"rendered":"How to Code the Fibonacci Sequence in Python"},"content":{"rendered":"\n<p>The Fibonacci Sequence is one of the most famous sequences in mathematics. It\u2019s quite simple to calculate: each number in the sequence is the sum of the previous two numbers.<br><\/p>\n\n\n\n<p>This sequence has found its way into programming. Often, it is used to train developers on algorithms and loops.<br><\/p>\n\n\n\n<p>In this guide, we\u2019re going to talk about how to code the Fibonacci Sequence in Python. We\u2019ll look at two approaches you can use to implement the Fibonacci Sequence: iterative and recursive.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is the Fibonacci Sequence?<\/h2>\n\n\n\n<p>The Fibonacci Sequence is a series of numbers. Each number is the product of the previous two numbers in the sequence. The sequence starts like this:<br><\/p>\n\n\n\n<p><code>0, 1, 1, 2, 3, 4, 8, 13, 21, 34<br><\/code><\/p>\n\n\n\n<p>It keeps going forever until you stop calculating new numbers. The rule for calculating the next number in the sequence is:<br><\/p>\n\n\n\n<p><code>x(n) = x(n-1) + x(n-2)<br><\/code><\/p>\n\n\n\n<p>x(n) is the next number in the sequence. x(n-1) is the previous term. x(n-2) is the term before the last one.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Fibonacci Sequence: Iterative Approach<\/h2>\n\n\n\n<p>Let\u2019s start by talking about the iterative approach to implementing the Fibonacci series.<br><\/p>\n\n\n\n<p>This approach uses a \u201c<a href=\"https:\/\/careerkarma.com\/blog\/do-while-python\/\">while<\/a>\u201d loop which calculates the next number in the list until a particular condition is met. Each time the while loop runs, our code iterates. This is why the approach is called iterative.<br><\/p>\n\n\n\n<p>Let\u2019s begin by setting a few initial values:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>terms_to_calculate = 9\nn1, n2 = 0, 1\ncounted = 0\n<\/pre><\/div>\n\n\n\n<p>We have declared four <a href=\"https:\/\/careerkarma.com\/blog\/python-variables\/\">variables<\/a>.<br><\/p>\n\n\n\n<p>The first variable tracks how many values we want to calculate. The next two variables, n1 and n2, are the first two items in the list. We need to state these values otherwise our program would not know where to begin. These values will change as we start calculating new numbers.<br><\/p>\n\n\n\n<p>The last variable tracks the number of terms we have calculated in our Python program.<br><\/p>\n\n\n\n<p>Let\u2019s write a loop which calculates a Fibonacci number:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>while counted &lt; terms_to_calculate:\n\tprint(n1)\n\tnew_number = n1 + n2\n\tn1 = n2\n\tn2 = new_number\n\tcounted += 1\n<\/pre><\/div>\n\n\n\n<p>This while loop runs until the number of values we have calculated is equal to the total numbers we want to calculate. The loop prints out the value of n1 to the shell. It then calculates the next number by adding the previous number in the sequence to the number before it.<br><\/p>\n\n\n\n<p>We swap the value of n1 to be equal to n2. This makes n1 the first number back after the new number. We then set n2 to be equal to the new number. Next, we use the += operator to add 1 to our counted variable.<br><\/p>\n\n\n\n<p>Our code returns:<br><\/p>\n\n\n\n<p>0<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>3<\/p>\n\n\n\n<p>5<\/p>\n\n\n\n<p>8<\/p>\n\n\n\n<p>13<\/p>\n\n\n\n<p>21<br><\/p>\n\n\n\n<p>Our program has successfully calculated the first nine values in the Fibonacci Sequence!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Fibonacci Sequence: Recursive Approach<\/h2>\n\n\n\n<p>Calculating the Fibonacci Sequence is a perfect use case for recursion. A recursive function is a function that depends on itself to solve a problem.<br><\/p>\n\n\n\n<p>Recursive functions break down a problem into smaller problems and use themselves to solve it. Let\u2019s start by initializing a variable that tracks how many numbers we want to calculate:<br><\/p>\n\n\n\n<p><code>terms_to_calculate = 9<br><\/code><\/p>\n\n\n\n<p>This program only needs to initialize one variable. Next, we can create a <a href=\"https:\/\/careerkarma.com\/blog\/python-functions\/\">function<\/a> that calculates the next number in the sequence:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>def calculate_number(number):\n\tif number &lt;= 1:\n\t\treturn number\n\telse:\n\t\treturn(calculate_number(number-1) + calculate_number(number-2))\n<\/pre><\/div>\n\n\n\n<p>This function checks whether the number passed into it is equal to or less than 1. If it is, that number is returned without any calculations. Otherwise, we call the calculate_number() function twice to calculate the sum of the preceding two items in the list.<br><\/p>\n\n\n\n<p>Finally, we need to write a main program that executes our function:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>for number in range(terms_to_calculate):\n\tprint(calculate_number(number))\n<\/pre><\/div>\n\n\n\n<p>This loop will execute a number of times equal to the value of terms_to_calculate. In other words, our loop will execute 9 times. This loop calls the <code>calculate_number() <\/code>method to calculate the next number in the sequence. It prints this number to the console.<br><\/p>\n\n\n\n<p>Our code returns:<br><\/p>\n\n\n\n<p>0<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>3<\/p>\n\n\n\n<p>5<\/p>\n\n\n\n<p>8<\/p>\n\n\n\n<p>13<\/p>\n\n\n\n<p>21<br><\/p>\n\n\n\n<p>The output from this code is the same as our earlier example.<br><\/p>\n\n\n\n<p>The difference is in the approach we have used. We have defined a recursive function which calls itself to calculate the next number in the sequence. The recursive approach is usually preferred over the iterative approach because it is easier to understand.<br><\/p>\n\n\n\n<p>This code uses substantially fewer lines than our iterative example. What\u2019s more, we only have to initialize one variable for this program to work; our iterative example required us to initialize four variables.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The Fibonacci Sequence can be generated using either an iterative or recursive approach.<br><\/p>\n\n\n\n<p>The iterative approach depends on a while loop to calculate the next numbers in the sequence. The recursive approach involves defining a function which calls itself to calculate the next number in the sequence.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to calculate the Fibonacci Sequence in Python like an expert!<br><\/p>\n","protected":false},"excerpt":{"rendered":"The Fibonacci Sequence is one of the most famous sequences in mathematics. It\u2019s quite simple to calculate: each number in the sequence is the sum of the previous two numbers. This sequence has found its way into programming. Often, it is used to train developers on algorithms and loops. In this guide, we\u2019re going to&hellip;","protected":false},"author":240,"featured_media":13972,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-20261","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>How to Code the Fibonacci Sequence in Python | Career Karma<\/title>\n<meta name=\"description\" content=\"The Fibonacci Sequence is a math series where each new number is the sum of the last two numbers. On Career Karma, learn about the fibonacci sequence in Python.\" \/>\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\/fibonacci-sequence-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Code the Fibonacci Sequence in Python\" \/>\n<meta property=\"og:description\" content=\"The Fibonacci Sequence is a math series where each new number is the sum of the last two numbers. On Career Karma, learn about the fibonacci sequence in Python.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/\" \/>\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-25T13:44:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:56:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/christina-wocintechchat-com-RTJIXQNne68-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"668\" \/>\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\/fibonacci-sequence-python\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"How to Code the Fibonacci Sequence in Python\",\"datePublished\":\"2020-07-25T13:44:13+00:00\",\"dateModified\":\"2023-12-01T11:56:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/\"},\"wordCount\":763,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/christina-wocintechchat-com-RTJIXQNne68-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/\",\"name\":\"How to Code the Fibonacci Sequence in Python | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/christina-wocintechchat-com-RTJIXQNne68-unsplash.jpg\",\"datePublished\":\"2020-07-25T13:44:13+00:00\",\"dateModified\":\"2023-12-01T11:56:10+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The Fibonacci Sequence is a math series where each new number is the sum of the last two numbers. On Career Karma, learn about the fibonacci sequence in Python.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/christina-wocintechchat-com-RTJIXQNne68-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/christina-wocintechchat-com-RTJIXQNne68-unsplash.jpg\",\"width\":1000,\"height\":668},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/#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\":\"How to Code the Fibonacci Sequence in Python\"}]},{\"@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":"How to Code the Fibonacci Sequence in Python | Career Karma","description":"The Fibonacci Sequence is a math series where each new number is the sum of the last two numbers. On Career Karma, learn about the fibonacci sequence in Python.","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\/fibonacci-sequence-python\/","og_locale":"en_US","og_type":"article","og_title":"How to Code the Fibonacci Sequence in Python","og_description":"The Fibonacci Sequence is a math series where each new number is the sum of the last two numbers. On Career Karma, learn about the fibonacci sequence in Python.","og_url":"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-07-25T13:44:13+00:00","article_modified_time":"2023-12-01T11:56:10+00:00","og_image":[{"width":1000,"height":668,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/christina-wocintechchat-com-RTJIXQNne68-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\/fibonacci-sequence-python\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"How to Code the Fibonacci Sequence in Python","datePublished":"2020-07-25T13:44:13+00:00","dateModified":"2023-12-01T11:56:10+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/"},"wordCount":763,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/christina-wocintechchat-com-RTJIXQNne68-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/","url":"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/","name":"How to Code the Fibonacci Sequence in Python | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/christina-wocintechchat-com-RTJIXQNne68-unsplash.jpg","datePublished":"2020-07-25T13:44:13+00:00","dateModified":"2023-12-01T11:56:10+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The Fibonacci Sequence is a math series where each new number is the sum of the last two numbers. On Career Karma, learn about the fibonacci sequence in Python.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/christina-wocintechchat-com-RTJIXQNne68-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/christina-wocintechchat-com-RTJIXQNne68-unsplash.jpg","width":1000,"height":668},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/fibonacci-sequence-python\/#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":"How to Code the Fibonacci Sequence in Python"}]},{"@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\/20261","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=20261"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/20261\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/13972"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=20261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=20261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=20261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}