{"id":17653,"date":"2021-01-14T03:13:31","date_gmt":"2021-01-14T11:13:31","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=17653"},"modified":"2023-12-01T04:08:05","modified_gmt":"2023-12-01T12:08:05","slug":"python-dictionary-values","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/","title":{"rendered":"Python Dictionary Values: A Guide"},"content":{"rendered":"\n<p><em>The Python dictionary values() method returns an object containing the values in a dictionary. This method is useful if you want to iterate over only the values in the dictionary. If you change a dictionary later, the data stored in the values() method will change to reflect the new dictionary.<\/em><\/p>\n\n\n\n<p>When you\u2019re working with Python, you may decide to store data in a dictionary. For instance, suppose you are building a restaurant management system. You may want to use a dictionary to store data about each order.<\/p>\n\n\n\n<p>You may be wondering: How can I retrieve the values stored in a dictionary? That\u2019s where the Python dictionary <em>values()<\/em>method comes in. The <em>values()<\/em> method returns a list of all the values stored in a dictionary.\n\n<\/p>\n\n\n\n<p>This tutorial will discuss, with reference to examples, the basics of Python dictionaries and how to use the <em>values() <\/em>method.\n\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Dictionary values()<\/h2>\n\n\n\n<p>The Python dictionary values() method returns a list of the values in a dictionary. values() accepts no arguments. You specify values() after the name of a dictionary.<\/p>\n\n\n\n<p>Let&#8217;s take a look at the syntax for this method:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>dict_name = { &quot;name1&quot;: &quot;value1&quot; }\ndict_name.values()<\/pre><\/div>\n\n\n\n<p>As you can see, the built-in function does not accept any parameters. Instead, the method is appended to the end of a dictionary.<\/p>\n\n\n\n<p>values() does not return a list. It returns a <em>dict_values<\/em> object. To convert the values into a regular list, you can use the Python list() method:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>dict_name = { &quot;name1&quot;: &quot;value1&quot; }\nnew_list = list(dict_name.values())<\/pre><\/div>\n\n\n\n<p>The value of <em>new_list<\/em> is a regular list of all the values in the dictionary we have specified. This list is not a <em>dict_values<\/em> object, unlike the one created from our first syntax definition.<\/p>\n\n\n\n<p>Alternatively, you can keep the <em>dict_values<\/em> object and iterate over it.<\/p>\n\n\n\n<p>The values() method is useful commonly used with a <a href=\"https:\/\/careerkarma.com\/blog\/python-for-loop\/\">Python for loop<\/a>. When used with a for loop, you can iterate over every value in a dictionary. For instance, you could check if each key in the dictionary has a value.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Dictionary values() Python Example<\/h2>\n\n\n\n<p>We have a <a href=\"https:\/\/careerkarma.com\/blog\/python-dictionary\/\">Python dictionary<\/a> that stores information about a student at a school.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>simon = {\n\t'name': 'Simon Henderson',\n\t'birthday': '02\/09\/2002',\n\t'class': 'Senior Year',\n\t'honor_roll': True\n}<\/pre><\/div>\n\n\n\n<p><em>name<\/em> is a key, and its associated value is <em>Simon Henderson<\/em>. <em>birthday<\/em> is also a key, and has been assigned the value <em>02\/09\/2002<\/em>. We also store information on the students&#8217; class and whether they are on the school&#8217;s honor roll.<\/p>\n\n\n\n<p>Suppose we want to retrieve a list of all the values stored in our dictionary. This would let us work with each value without having to deal with the dictionary keys. We could retrieve these values using the values() method:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>simon = {\n\t'name': 'Simon Henderson',\n\t'birthday': '02\/09\/2002',\n\t'class': 'Senior Year',\n\t'honor_roll': True\n}\n\nprint(simon.values())<\/pre><\/div>\n\n\n\n<p>Our code returns:<\/p>\n\n\n\n<p><em>dict_values([&#8216;Simon Henderson&#8217;, &#8217;02\/09\/2002&#8242;, &#8216;Senior Year&#8217;, True])<\/em><\/p>\n\n\n\n<p>First, we declare a dictionary with four keys and values. The name of this dictionary is <em>simon<\/em>. Then, we retrieve the values stored in our dictionary using the <em>values()<\/em> method and print them out to the console.<\/p>\n\n\n\n<p>Our code returns a dict_values object that contains a list of all the values in our dictionary.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Iterating Using a for Loop<\/h2>\n\n\n\n<p>Suppose we want to print out a list of all the values in our dictionary to the console. Each value appearing on a new line. This is where a for loop comes in handy.<\/p>\n\n\n\n<p>We can use a for loop to iterate over every item in our <em>dict_values<\/em> object and print each item to the console:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>simon = {\n\t'name': 'Simon Henderson',\n\t'birthday': '02\/09\/2002',\n\t'class': 'Senior Year',\n\t'honor_roll': True\n}\n\nfor item in simon.values():\n\tprint(item)<\/pre><\/div>\n\n\n\n<p>Our code returns:\n\n<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Simon Henderson\n02\/09\/2002\nSenior Year\nTrue<\/pre><\/div>\n\n\n\n<p>Because the <em>values() <\/em>method returns a <em>dict_object<\/em> with a list of our keys, we can iterate over it using a <em>for<\/em> loop.<\/p>\n\n\n\n<p>In this example, we created a for loop which runs through every value in the <em>simon<\/em> dictionary. Each time the for loop is executed, a value from the dictionary is printed to the console until all values have been traversed.<\/p>\n\n\n\n<p>After all values have been printed to the console, our code stops executing<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Validating Data Using a for Loop<\/h2>\n\n\n\n<p>We could use a for loop and the values() method to validate whether our dictionary has any blank strings.<\/p>\n\n\n\n<p>Consider the following code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>simon = {\n\t'name': 'Simon Henderson',\n\t'birthday': '02\/09\/2002',\n\t'class': 'Senior Year',\n\t'honor_roll': True\n}\n\nblank = 0\nfor item in simon.values():\n\tif item == &quot;&quot;:\n\t\tblank += 1\n\nprint(&quot;There are {} blank values in the dictionary.&quot;.format(blank))<\/pre><\/div>\n\n\n\n<p>We declare a <a href=\"https:\/\/careerkarma.com\/blog\/python-variables\/\">Python variable<\/a> called blank. This variable tracks how many blank values there are in our dictionary.<\/p>\n\n\n\n<p>We use a <a href=\"https:\/\/careerkarma.com\/blog\/python-if-else\/\">Python if statement<\/a> in our for loop to evaluate whether any item has the value &#8220;&#8221;. This value is a blank string. If there is a blank string in our list, our code adds 1 to our &#8220;blank&#8221; variable.<\/p>\n\n\n\n<p>Once our loop has executed, our code tells us how many blank values are in the dictionary. We use a <a href=\"https:\/\/careerkarma.com\/blog\/python-f-string\/\">Python format() statement<\/a> to add the number of blank values into the string we print to the console.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The Python dictionary values() method retrieves the values in a dictionary. The values are formatted in a dict_values object. You can read each value returned by the values() method using a for loop.<\/p>\n\n\n\n<p>This tutorial discussed how you can use the dictionary.values() method to retrieve the values in a dictionary. Now you\u2019re ready to start working with the values() method like a Python expert!<\/p>\n\n\n\n<p>Do you want to learn more about Python? Read our <a href=\"https:\/\/careerkarma.com\/blog\/how-to-learn-python\/\">How to Learn Python guide<\/a>. This guide contains a list of curated courses, learning tips, books, and resources you can use to advance your knowledge of Python.<\/p>\n","protected":false},"excerpt":{"rendered":"The Python dictionary values() method returns an object containing the values in a dictionary. This method is useful if you want to iterate over only the values in the dictionary. If you change a dictionary later, the data stored in the values() method will change to reflect the new dictionary. When you\u2019re working with Python,&hellip;","protected":false},"author":240,"featured_media":17654,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-17653","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 Dictionary Values: A Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"The dictionary values() method allows you to retrieve a list of all values in a Python dictionary. On Career Karma, learn how to use the Python values() method.\" \/>\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-dictionary-values\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Dictionary Values: A Guide\" \/>\n<meta property=\"og:description\" content=\"The dictionary values() method allows you to retrieve a list of all values in a Python dictionary. On Career Karma, learn how to use the Python values() method.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/\" \/>\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=\"2021-01-14T11:13:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:08:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/apple-apple-devices-blur-cellphone-269323.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-dictionary-values\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python Dictionary Values: A Guide\",\"datePublished\":\"2021-01-14T11:13:31+00:00\",\"dateModified\":\"2023-12-01T12:08:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/\"},\"wordCount\":866,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/apple-apple-devices-blur-cellphone-269323.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/\",\"name\":\"Python Dictionary Values: A Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/apple-apple-devices-blur-cellphone-269323.jpg\",\"datePublished\":\"2021-01-14T11:13:31+00:00\",\"dateModified\":\"2023-12-01T12:08:05+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The dictionary values() method allows you to retrieve a list of all values in a Python dictionary. On Career Karma, learn how to use the Python values() method.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/apple-apple-devices-blur-cellphone-269323.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/apple-apple-devices-blur-cellphone-269323.jpg\",\"width\":1000,\"height\":667},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/#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 Dictionary Values: 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 Dictionary Values: A Guide | Career Karma","description":"The dictionary values() method allows you to retrieve a list of all values in a Python dictionary. On Career Karma, learn how to use the Python values() method.","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-dictionary-values\/","og_locale":"en_US","og_type":"article","og_title":"Python Dictionary Values: A Guide","og_description":"The dictionary values() method allows you to retrieve a list of all values in a Python dictionary. On Career Karma, learn how to use the Python values() method.","og_url":"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2021-01-14T11:13:31+00:00","article_modified_time":"2023-12-01T12:08:05+00:00","og_image":[{"width":1000,"height":667,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/apple-apple-devices-blur-cellphone-269323.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-dictionary-values\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python Dictionary Values: A Guide","datePublished":"2021-01-14T11:13:31+00:00","dateModified":"2023-12-01T12:08:05+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/"},"wordCount":866,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/apple-apple-devices-blur-cellphone-269323.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-dictionary-values\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/","url":"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/","name":"Python Dictionary Values: A Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/apple-apple-devices-blur-cellphone-269323.jpg","datePublished":"2021-01-14T11:13:31+00:00","dateModified":"2023-12-01T12:08:05+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The dictionary values() method allows you to retrieve a list of all values in a Python dictionary. On Career Karma, learn how to use the Python values() method.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-dictionary-values\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/apple-apple-devices-blur-cellphone-269323.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/apple-apple-devices-blur-cellphone-269323.jpg","width":1000,"height":667},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-dictionary-values\/#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 Dictionary Values: 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\/17653","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=17653"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/17653\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/17654"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=17653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=17653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=17653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}