{"id":20197,"date":"2020-07-24T23:46:00","date_gmt":"2020-07-25T06:46:00","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=20197"},"modified":"2023-12-01T03:56:07","modified_gmt":"2023-12-01T11:56:07","slug":"python-factorial","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-factorial\/","title":{"rendered":"Python Factorial: A Guide"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">How to Calculate a Python Factorial<\/h2>\n\n\n\n<p>You may remember the word \u201cfactorial\u201d from your high school math class. They\u2019re not very easy to calculate without a calculator. Who wants to calculate the factorial of 10 by manually multiplying 1x2x3x4 and so on?<br><\/p>\n\n\n\n<p>There are a few ways you can calculate a factorial in <a href=\"https:\/\/careerkarma.com\/blog\/how-to-learn-python\/\">Python<\/a>. In this guide, we\u2019re going to talk about how to calculate a factorial using three approaches: the math.factorial method, a recursive function, and an iterative method.<br><\/p>\n\n\n\n<p>Without further ado, let\u2019s begin!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is a Factorial?<\/h2>\n\n\n\n<p>A factorial is the product of all the whole numbers between one and another number.&nbsp;<br><\/p>\n\n\n\n<p>Expressed as a mathematical formula, a factorial is:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>n! = 1x2x3...n<\/pre><\/div>\n\n\n\n<p>The exclamation mark indicates that we are calculating a factorial. \u201cn\u201d is the number whose factorial we are calculating. Our calculation stops when we have multiplied all integers less than or equal to \u201cn\u201d are multiplied together.<br><\/p>\n\n\n\n<p>Factorials cannot be calculated on negative numbers.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Factorial: math.factorial()<\/h2>\n\n\n\n<p>You can calculate a factorial using the Python math module. This library offers a range of methods that you can use to perform mathematical functions. For instance, you can use the math library to generate a random number.<br><\/p>\n\n\n\n<p>The <code>math.factorial()<\/code> method accepts a number and calculates its factorial. Before we can use this method, we need to <a href=\"https:\/\/careerkarma.com\/blog\/python-import\/\">import the math library<\/a> into our code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import math<\/pre><\/div>\n\n\n\n<p>Now, let\u2019s write a Python program to find the factorial of 17:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>number = 17\nfact = math.factorial(number)\nprint(&quot;The factorial of {} is {}.&quot;.format(number, str(fact)))<\/pre><\/div>\n\n\n\n<p>Our code returns: The factorial of 17 is 355687428096000.<br><\/p>\n\n\n\n<p>The <code>factorial()<\/code> method returns the factorial of a number.<br><\/p>\n\n\n\n<p>We print that number to the console with the message: \u201cThe factorial of 17 is \u201d. We use a <code>format()<\/code> statement so that we can add our number inside our string.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Factorial: Iterative Approach<\/h2>\n\n\n\n<p>Factorials can be calculated without the use of an external Python library. You can calculate a factorial using a simple for statement that calculates the product of all numbers in a range multiplied together.<br><\/p>\n\n\n\n<p>Let\u2019s start by declaring two <a href=\"https:\/\/careerkarma.com\/blog\/python-variables\/\">variables<\/a>:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>number = 17\nfact = 1<\/pre><\/div>\n\n\n\n<p>The first variable corresponds with the number whose factorial we want to calculate. The second variable will track the total of the factorial.<br><\/p>\n\n\n\n<p>Next, we need to create a <a href=\"https:\/\/careerkarma.com\/blog\/python-for-loop\/\">for loop<\/a> which loops through every number in the range of one and our number:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>for num in range(1, number+1):\n\tfact = fact * num\n\nprint(&quot;The factorial of {} is {}.&quot;.format(number, str(fact)))<\/pre><\/div>\n\n\n\n<p>The for loop calculates the factorial of a number. The print statement shows us the total factorial that has been calculated in our for loop.<br><\/p>\n\n\n\n<p>Our code returns: The factorial of 17 is 355687428096000.<br><\/p>\n\n\n\n<p>This method is slightly less efficient than the <code>math.factorial()<\/code> method. This is because the <code>math.factorial()<\/code> method is implemented using the C-type implementation method. This offers a number of performance benefits.<br><\/p>\n\n\n\n<p>If you want to calculate the factorial of a number without using an external library, the iterative approach is a useful method to use.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Factorial: Recursive Approach<\/h2>\n\n\n\n<p>A factorial can be calculated using a recursive function. A recursive function is one which calls upon itself to solve a particular problem.<br><\/p>\n\n\n\n<p>Recursive functions are often used to calculate mathematical sequences or to solve mathematical problems. This is because there is usually a defined formula that is used to calculate the answer to a problem.<br><\/p>\n\n\n\n<p>Open up a Python file and paste in the following <a href=\"https:\/\/careerkarma.com\/blog\/python-functions\/\">function<\/a>:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>def calculate_factorial(number):\n\tif number == 1:\n\t\treturn number\n\telse:\n\t\treturn number * calculate_factorial(number - 1)<\/pre><\/div>\n\n\n\n<p>This function recursively calculates the factorial of a number. Next, we need to write a main program that uses this function:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>number = 17\nfact = calculate_factorial(number)\n\nprint(&quot;The factorial of {} is {}.&quot;.format(number, str(fact)))<\/pre><\/div>\n\n\n\n<p>We have declared two variables: number and fact. Number is the number whose factorial we want to calculate. \u201cfact\u201d is assigned the result of the <code>calculate_factorial()<\/code> function which calculates our factorial. Next, we print the answer to the console.<br><\/p>\n\n\n\n<p>Our code returns: The factorial of 17 is 355687428096000.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Factorials are commonly used in mathematics. They are the product of all the whole numbers from one to another number when multiplied together.<br><\/p>\n\n\n\n<p>You can calculate a factorial in Python using <code>math.factorial()<\/code>, an iterative method, or a recursive function. The iterative and recursive approaches can be written in so-called \u201cvanilla Python.\u201d This means that you don\u2019t need to import any libraries to calculate a factorial with these approaches.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to calculate factorials in Python like an expert!<\/p>\n","protected":false},"excerpt":{"rendered":"How to Calculate a Python Factorial You may remember the word \u201cfactorial\u201d from your high school math class. They\u2019re not very easy to calculate without a calculator. Who wants to calculate the factorial of 10 by manually multiplying 1x2x3x4 and so on? There are a few ways you can calculate a factorial in Python. In&hellip;","protected":false},"author":240,"featured_media":20199,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-20197","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 Factorial: A Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"A factorial is the product of all whole numbers between one and another number. On Career Karma, learn how to calculate a Python factorial.\" \/>\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-factorial\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Factorial: A Guide\" \/>\n<meta property=\"og:description\" content=\"A factorial is the product of all whole numbers between one and another number. On Career Karma, learn how to calculate a Python factorial.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-factorial\/\" \/>\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-25T06:46:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:56:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/antoine-dautry-05A-kdOH6Hw-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-factorial\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-factorial\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python Factorial: A Guide\",\"datePublished\":\"2020-07-25T06:46:00+00:00\",\"dateModified\":\"2023-12-01T11:56:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-factorial\/\"},\"wordCount\":680,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-factorial\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/antoine-dautry-05A-kdOH6Hw-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-factorial\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-factorial\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-factorial\/\",\"name\":\"Python Factorial: A Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-factorial\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-factorial\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/antoine-dautry-05A-kdOH6Hw-unsplash.jpg\",\"datePublished\":\"2020-07-25T06:46:00+00:00\",\"dateModified\":\"2023-12-01T11:56:07+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"A factorial is the product of all whole numbers between one and another number. On Career Karma, learn how to calculate a Python factorial.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-factorial\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-factorial\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-factorial\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/antoine-dautry-05A-kdOH6Hw-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/antoine-dautry-05A-kdOH6Hw-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-factorial\/#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 Factorial: A 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 Factorial: A Guide | Career Karma","description":"A factorial is the product of all whole numbers between one and another number. On Career Karma, learn how to calculate a Python factorial.","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-factorial\/","og_locale":"en_US","og_type":"article","og_title":"Python Factorial: A Guide","og_description":"A factorial is the product of all whole numbers between one and another number. On Career Karma, learn how to calculate a Python factorial.","og_url":"https:\/\/careerkarma.com\/blog\/python-factorial\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-07-25T06:46:00+00:00","article_modified_time":"2023-12-01T11:56:07+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/antoine-dautry-05A-kdOH6Hw-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-factorial\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-factorial\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python Factorial: A Guide","datePublished":"2020-07-25T06:46:00+00:00","dateModified":"2023-12-01T11:56:07+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-factorial\/"},"wordCount":680,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-factorial\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/antoine-dautry-05A-kdOH6Hw-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-factorial\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-factorial\/","url":"https:\/\/careerkarma.com\/blog\/python-factorial\/","name":"Python Factorial: A Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-factorial\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-factorial\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/antoine-dautry-05A-kdOH6Hw-unsplash.jpg","datePublished":"2020-07-25T06:46:00+00:00","dateModified":"2023-12-01T11:56:07+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"A factorial is the product of all whole numbers between one and another number. On Career Karma, learn how to calculate a Python factorial.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-factorial\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-factorial\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-factorial\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/antoine-dautry-05A-kdOH6Hw-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/antoine-dautry-05A-kdOH6Hw-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-factorial\/#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 Factorial: A 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\/20197","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=20197"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/20197\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/20199"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=20197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=20197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=20197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}