{"id":13564,"date":"2020-11-19T12:29:43","date_gmt":"2020-11-19T20:29:43","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=13564"},"modified":"2023-12-01T04:04:13","modified_gmt":"2023-12-01T12:04:13","slug":"python-floor-ceil","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/","title":{"rendered":"Python Ceil and Floor: A Step-By-Step Guide"},"content":{"rendered":"\n<p><em>The Python ceil() function rounds a number up to the nearest integer, or whole number. Python floor() rounds decimals down to the nearest whole number. Both of these functions are part of the math Python library.<\/em><\/p>\n\n\n\n<p>When programming in Python, you may encounter a scenario where you want to round a number to the nearest integer.<\/p>\n\n\n\n<p>That\u2019s where the Python <em>math.floor()<\/em> and <em>math.ceil()<\/em> methods come in. You can use the <em>math.floor()<\/em> method to calculate the nearest integer to a decimal number. The <em>math.ceil()<\/em> method rounds a number down to its nearest integer.<\/p>\n\n\n\n<p>This tutorial will discuss using the <em>floor<\/em> and <em>ceil<\/em> methods to return the floor or ceiling of a provided value. We\u2019ll walk through examples of each of these methods in a program to showcase how they work.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Floor Function<\/h2>\n\n\n\n<p>The Python math.floor() method rounds a number down to the nearest integer. This method takes one argument: the number you want to return. In Python 3, math.floor() returns an integer value.<\/p>\n\n\n\n<p>Calculating the floor of a number is a common mathematical function in Python. The <em>floor<\/em> of a number refers to the nearest <a href=\"https:\/\/careerkarma.com\/blog\/python-string-to-int\/\">Python integer value<\/a> which is less than or equal to the number. To put it another way, the floor of a number is the number rounded down to its nearest integer value.<\/p>\n\n\n\n<p>The Python math module includes a method that can be used to calculate the floor of a number: <em>math.floor()<\/em>. <em>math.floor()<\/em> takes in one parameter, which is the number whose floor value you want to calculate.<\/p>\n\n\n\n<p>Here\u2019s the syntax for the <em>floor()<\/em> function:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import math\n\nmath.floor(number)<\/pre><\/div>\n\n\n\n<p>The Python <em>floor()<\/em> division function is part of the math library. In order to use it, we first need to import the math library. You can import the math library into your program using a <a href=\"https:\/\/careerkarma.com\/blog\/python-import\/\">Python import statement<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Floor() Python Example<\/h3>\n\n\n\n<p>Say that we are working in a coffee shop. We want to create a calculator that rounds down the quantities of the beans we have available to their nearest whole number. This makes it easier for us to understand the quantity of much coffee we have left.<\/p>\n\n\n\n<p>We could round down the quantity of a bean to its nearest whole number using the following code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import math\n\nquantity = 250.92\n\nrounded = math.floor(quantity)\nprint(rounded)<\/pre><\/div>\n\n\n\n<p>Our code returns the smallest integer closest to 250.92, which is: <em>250<\/em>.&nbsp;<\/p>\n\n\n\n<p>On the first line, we import the math library. Next, we define a <a href=\"https:\/\/careerkarma.com\/blog\/python-variables\/\">Python variable<\/a> called <em>quantity<\/em>. This variable stores the quantity of the bean we have in storage. We use the <em>math.floor()<\/em> function to round down the <em>quantity<\/em> variable to its nearest whole number.<\/p>\n\n\n\n<p>In this case, the nearest whole number to 250.92 is 250. Our code returned 250.<\/p>\n\n\n\n<p>We can use the <em>math.floor()<\/em> method on negative numbers. Let\u2019s say that we are writing a program that calculates the quantity of many beans we\u2019ll have left at the end of the month.<\/p>\n\n\n\n<p>Our program has projected that, given how many sales we have seen so far, we will have a negative amount of beans. In other words, we will run out of beans.&nbsp;We print the math.floor() output to the console.<\/p>\n\n\n\n<p>We want to round down our value to the nearest whole number. This will let us know the quantity of beans to order, based on current demand:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import math\n\nquantity_projection = -25.21\n\nrounded = math.floor(quantity_projection)\nprint(rounded)<\/pre><\/div>\n\n\n\n<p>Our code returns: <em>-26<\/em>.<\/p>\n\n\n\n<p>The program has rounded down our negative value to the nearest whole integer, which in this case is -26.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Ceil<\/h2>\n\n\n\n<p>The <em>math.ceil()<\/em> method is the opposite of the <em>math.floor()<\/em> method. math.ceil() rounds a number up to the nearest integer. Like math.floor(), math.ceil() returns an integer value.<\/p>\n\n\n\n<p>Whereas <em>floor<\/em> rounds down a number to its nearest whole value, <em>ceil<\/em> rounds a number up to its nearest whole value.<\/p>\n\n\n\n<p>Here\u2019s the syntax for the <em>math.ceil()<\/em> method:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import math\n\nmath.ceil(number)<\/pre><\/div>\n\n\n\n<p>The syntax for the ceil function is the same as the syntax for <em>math.floor()<\/em>. Both methods take in one parameter: the number you want to process using the method. The ceil() function returns the ceiling number of a float, or the largest integer closest to it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ceil() Python Example<\/h3>\n\n\n\n<p>Let\u2019s discuss an example of the <em>math.ceil()<\/em> method in action. Say that we have decided we want to calculate the ceiling value of each bean quantity. In other words, we want to know the smallest whole number above each bean quantity. We want to calculate this so we know how many beans to order in our next shipment.<\/p>\n\n\n\n<p>We could use the following code to round up the bean quantity we have to the nearest whole number:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import math\n\nquantity = 22.15\n\nrounded = math.ceil(quantity)\nprint(rounded)<\/pre><\/div>\n\n\n\n<p>Our code returns: <em>23<\/em>. The <em>math.ceil()<\/em> function has rounded up our quantity to the nearest whole integer not less than the quantity, which in this case is 23.<\/p>\n\n\n\n<p>Similarly, we can use <em>math.ceil()<\/em> on negative numbers. Let\u2019s use the example of the program we discussed earlier to show how this works. Instead of finding the floor value of our remaining quantity, we want to find the ceiling value. We could do so using this program:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import math\n\nquantity_projection = -25.21\n\nrounded = math.floor(quantity_projection)\nprint(rounded)<\/pre><\/div>\n\n\n\n<p>Our code returns: <em>-26<\/em>. Our program has rounded our quantity projection up to the nearest whole number, which in this case was -26.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Floor Division and Ceil vs. Round<\/h2>\n\n\n\n<p>The Python <em>round()<\/em> method searches for the nearest number, which could include decimals, while <em>math.floor()<\/em> and <em>ceil()<\/em> round up and down to the nearest <em>integer()<\/em>, respectively.<\/p>\n\n\n\n<p>If you wanted to round a number like 105.2529 to two decimal places, you\u2019d want to use <em>round()<\/em> instead of <em>floor()<\/em> or <em>ceil()<\/em>.<\/p>\n\n\n\n<p>If you\u2019re interested in learning more using the <em>round()<\/em> method, check out our tutorial on <a href=\"https:\/\/careerkarma.com\/blog\/python-round\/\">Python round<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The <em>math.floor()<\/em> method allows you round a number down to its nearest whole integer. <em>math.ceil()<\/em> method allows you to round a number up to its nearest whole integer.<\/p>\n\n\n\n<p>This tutorial discussed using both the <em>math.floor()<\/em> and <em>math.ceil()<\/em> functions to round numbers in Python. We walked through an example of each of these methods in a program.<\/p>\n\n\n\n<p>To learn more about coding in Python, read 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 ceil() function rounds a number up to the nearest integer, or whole number. Python floor() rounds decimals down to the nearest whole number. Both of these functions are part of the math Python library. When programming in Python, you may encounter a scenario where you want to round a number to the nearest&hellip;","protected":false},"author":240,"featured_media":13565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-13564","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 Ceil and Floor: A Step-By-Step Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"Coders use Python math.floor and math.ceil to return the floor or ceiling of a specific value. Learn more in this article.\" \/>\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-floor-ceil\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Ceil and Floor: A Step-By-Step Guide\" \/>\n<meta property=\"og:description\" content=\"Coders use Python math.floor and math.ceil to return the floor or ceiling of a specific value. Learn more in this article.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/\" \/>\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-11-19T20:29:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:04:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-woman-desk-laptop-3061.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=\"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-floor-ceil\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python Ceil and Floor: A Step-By-Step Guide\",\"datePublished\":\"2020-11-19T20:29:43+00:00\",\"dateModified\":\"2023-12-01T12:04:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/\"},\"wordCount\":1020,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-woman-desk-laptop-3061.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/\",\"name\":\"Python Ceil and Floor: A Step-By-Step Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-woman-desk-laptop-3061.jpg\",\"datePublished\":\"2020-11-19T20:29:43+00:00\",\"dateModified\":\"2023-12-01T12:04:13+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"Coders use Python math.floor and math.ceil to return the floor or ceiling of a specific value. Learn more in this article.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-woman-desk-laptop-3061.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-woman-desk-laptop-3061.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/#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 Ceil and Floor: 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 Ceil and Floor: A Step-By-Step Guide | Career Karma","description":"Coders use Python math.floor and math.ceil to return the floor or ceiling of a specific value. Learn more in this article.","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-floor-ceil\/","og_locale":"en_US","og_type":"article","og_title":"Python Ceil and Floor: A Step-By-Step Guide","og_description":"Coders use Python math.floor and math.ceil to return the floor or ceiling of a specific value. Learn more in this article.","og_url":"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-11-19T20:29:43+00:00","article_modified_time":"2023-12-01T12:04:13+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-woman-desk-laptop-3061.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-floor-ceil\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python Ceil and Floor: A Step-By-Step Guide","datePublished":"2020-11-19T20:29:43+00:00","dateModified":"2023-12-01T12:04:13+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/"},"wordCount":1020,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-woman-desk-laptop-3061.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-floor-ceil\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/","url":"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/","name":"Python Ceil and Floor: A Step-By-Step Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-woman-desk-laptop-3061.jpg","datePublished":"2020-11-19T20:29:43+00:00","dateModified":"2023-12-01T12:04:13+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"Coders use Python math.floor and math.ceil to return the floor or ceiling of a specific value. Learn more in this article.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-floor-ceil\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-woman-desk-laptop-3061.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-woman-desk-laptop-3061.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-floor-ceil\/#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 Ceil and Floor: 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\/13564","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=13564"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/13564\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/13565"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=13564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=13564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=13564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}