{"id":18672,"date":"2021-12-02T13:38:51","date_gmt":"2021-12-02T08:08:51","guid":{"rendered":"https:\/\/tutorial.eyehunts.com\/?p=18672"},"modified":"2023-06-30T18:07:25","modified_gmt":"2023-06-30T12:37:25","slug":"get-value-by-key-dictionary-python-example-code","status":"publish","type":"post","link":"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/","title":{"rendered":"Get value by key dictionary Python | Example code"},"content":{"rendered":"\n<p>Simple use <strong>square bracket [] <\/strong>with a key on dictionary object to Get value by key dictionary Python.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dict&#91;key]<\/code><\/pre>\n\n\n\n<p><strong>Note<\/strong>: <code>KeyError<\/code> occurs if the key does not exist.<\/p>\n\n\n\n<p>Or Use gets () method of the dictionary object dict to get any default value without raising an error if the key does not exist.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dict.get()<\/code><\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Example get value by key dictionary Python<\/strong><\/h2>\n\n\n\n<p>A simple example code gets the dictionary value by specifying the key with dict[key].<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>d = {'key1': 100, 'key2': 200, 'key3': 300}\n\nres = d&#91;'key1']\n\nprint(res)\n<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"276\" height=\"128\" src=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Get-value-by-key-dictionary-Python.jpg?resize=276%2C128&#038;ssl=1\" alt=\"Get value by key dictionary Python\" class=\"wp-image-22902\"\/><\/figure><\/div>\n\n\n<p><strong>More examples<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>my_dict = {'apple': 5, 'banana': 3, 'orange': 2}\r\n\r\n# Using square brackets\r\napple_count = my_dict&#91;'apple']\r\nprint(apple_count)  # Output: 5\r\n\r\n# Using get() method\r\nbanana_count = my_dict.get('banana')\r\nprint(banana_count)  # Output: 3\r<\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Using dict.get() method<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>d = {'key1': 100, 'key2': 200, 'key3': 300}\n\nres = d.get('key12')\n\nprint(res)\n<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>: <a href=\"https:\/\/tutorial.eyehunts.com\/python\/none-keyword-in-python-example-code\/\">None<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/docs.python.org\/3\/library\/stdtypes.html#dict.get\">Built-in Types dict.get() \u2014 Python 3.9.1 documentation<\/a>, In both methods, The original dictionary itself does not change.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Do comment if you have any doubts or suggestions on this Python dictionary topic.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>Note:<\/strong> IDE:&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.jetbrains.com\/pycharm\/\" target=\"_blank\">PyCharm<\/a>&nbsp;2021.3.3 (Community Edition)<\/p><p>Windows 10<\/p><p><strong>Python 3.10.1<\/strong><\/p><p>All<strong>&nbsp;Python Examples&nbsp;are in&nbsp;Python&nbsp;3<\/strong>, so Maybe its different from python 2 or upgraded versions.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Simple use square bracket [] with a key on dictionary object to Get value by key dictionary Python. Note: KeyError occurs if the key does not exist. Or Use gets () method of the dictionary object dict to get any default value without raising an error if the key does not exist. Example get value&hellip;&nbsp;<a href=\"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Get value by key dictionary Python | Example code<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[30],"tags":[101,205],"post_series":[],"class_list":["post-18672","post","type-post","status-publish","format-standard","hentry","category-python","tag-python-dictionary","tag-python-example"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Get value by key dictionary Python | Example code<\/title>\n<meta name=\"description\" content=\"Simple use square bracket [] with a key on dictionary object to Get value by key dictionary Python. KeyError occurs if the key does not exist\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Get value by key dictionary Python | Example code\" \/>\n<meta property=\"og:description\" content=\"Simple use square bracket [] with a key on dictionary object to Get value by key dictionary Python. KeyError occurs if the key does not exist\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-02T08:08:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-30T12:37:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Get-value-by-key-dictionary-Python.jpg\" \/>\n<meta name=\"author\" content=\"Rohit\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rohit\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/\",\"name\":\"Get value by key dictionary Python | Example code\",\"isPartOf\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Get-value-by-key-dictionary-Python.jpg\",\"datePublished\":\"2021-12-02T08:08:51+00:00\",\"dateModified\":\"2023-06-30T12:37:25+00:00\",\"author\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\"},\"description\":\"Simple use square bracket [] with a key on dictionary object to Get value by key dictionary Python. KeyError occurs if the key does not exist\",\"breadcrumb\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Get-value-by-key-dictionary-Python.jpg?fit=276%2C128&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Get-value-by-key-dictionary-Python.jpg?fit=276%2C128&ssl=1\",\"width\":276,\"height\":128},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tutorial.eyehunts.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get value by key dictionary Python | Example code\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\",\"url\":\"https:\/\/tutorial.eyehunts.com\/\",\"name\":\"Tutorial\",\"description\":\"By EyeHunts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tutorial.eyehunts.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\",\"name\":\"Rohit\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777374971\",\"contentUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777374971\",\"caption\":\"Rohit\"},\"description\":\"Degree in Computer Science and Engineer: App Developer and has multiple Programming languages experience. Enthusiasm for technology &amp; like learning technical.\",\"url\":\"https:\/\/tutorial.eyehunts.com\/author\/rohit\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Get value by key dictionary Python | Example code","description":"Simple use square bracket [] with a key on dictionary object to Get value by key dictionary Python. KeyError occurs if the key does not exist","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:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/","og_locale":"en_US","og_type":"article","og_title":"Get value by key dictionary Python | Example code","og_description":"Simple use square bracket [] with a key on dictionary object to Get value by key dictionary Python. KeyError occurs if the key does not exist","og_url":"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/","og_site_name":"Tutorial","article_published_time":"2021-12-02T08:08:51+00:00","article_modified_time":"2023-06-30T12:37:25+00:00","og_image":[{"url":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Get-value-by-key-dictionary-Python.jpg","type":"","width":"","height":""}],"author":"Rohit","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rohit","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/","url":"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/","name":"Get value by key dictionary Python | Example code","isPartOf":{"@id":"https:\/\/tutorial.eyehunts.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/#primaryimage"},"image":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/#primaryimage"},"thumbnailUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Get-value-by-key-dictionary-Python.jpg","datePublished":"2021-12-02T08:08:51+00:00","dateModified":"2023-06-30T12:37:25+00:00","author":{"@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1"},"description":"Simple use square bracket [] with a key on dictionary object to Get value by key dictionary Python. KeyError occurs if the key does not exist","breadcrumb":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/#primaryimage","url":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Get-value-by-key-dictionary-Python.jpg?fit=276%2C128&ssl=1","contentUrl":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Get-value-by-key-dictionary-Python.jpg?fit=276%2C128&ssl=1","width":276,"height":128},{"@type":"BreadcrumbList","@id":"https:\/\/tutorial.eyehunts.com\/python\/get-value-by-key-dictionary-python-example-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tutorial.eyehunts.com\/"},{"@type":"ListItem","position":2,"name":"Get value by key dictionary Python | Example code"}]},{"@type":"WebSite","@id":"https:\/\/tutorial.eyehunts.com\/#website","url":"https:\/\/tutorial.eyehunts.com\/","name":"Tutorial","description":"By EyeHunts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tutorial.eyehunts.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1","name":"Rohit","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/image\/","url":"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777374971","contentUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777374971","caption":"Rohit"},"description":"Degree in Computer Science and Engineer: App Developer and has multiple Programming languages experience. Enthusiasm for technology &amp; like learning technical.","url":"https:\/\/tutorial.eyehunts.com\/author\/rohit\/"}]}},"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":23728,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-dictionary-with-the-list-as-value-example-code\/","url_meta":{"origin":18672,"position":0},"title":"Python dictionary with the list as value | Example code","author":"Rohit","date":"December 25, 2021","format":false,"excerpt":"Python dictionary allows the use of a list as the value. That means you can define a dictionary with the list as a value to a key in Python. Must Read: Python dictionary same key multiple values { keyName1 : value1, keyName2: value2, keyName3: [val1, val2, val3] } The values\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python dictionary with the list as value","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-dictionary-with-the-list-as-value.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":22508,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-update-dictionary-value-example-code\/","url_meta":{"origin":18672,"position":1},"title":"Python update dictionary value | Example code","author":"Rohit","date":"November 20, 2021","format":false,"excerpt":"Use update() method to update dictionary value in Python. This method updates the dictionary with the elements from another dictionary object or from an iterable of key\/value pairs. So Use the existing key if you want to update the value for a particular key in the dictionary. Example update dictionary\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python update dictionary value","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-update-dictionary-value.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":22225,"url":"https:\/\/tutorial.eyehunts.com\/python\/example-for-key-value-in-dict-python\/","url_meta":{"origin":18672,"position":2},"title":"Example for key value in dict Python","author":"Rohit","date":"November 14, 2021","format":false,"excerpt":"For loop will iterate through a dictionary to get key values in Python. In dictionary iterates over all the keys and helps us to access the key-value pair one after the other in the loop Iterate Through a Dictionary in Python A simple example code gets the key value of\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Example for key value in dict Python","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Example-for-key-value-in-dict-Python.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":21737,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-dict-setdefault-function-example-code\/","url_meta":{"origin":18672,"position":3},"title":"Python dict setdefault function | Example code","author":"Rohit","date":"November 25, 2021","format":false,"excerpt":"The Python dict setdefault method is used to get the value of the item with the specified key. This method actually returns the value of a key (if the key is in a dictionary). If not, it inserts a key with a value to the dictionary. dict.setdefault(key, default_value) If the\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python dict setdefault function","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-dict-setdefault-function.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":18682,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-dict-getkey-example-code\/","url_meta":{"origin":18672,"position":4},"title":"Python dict getkey | Example code","author":"Rohit","date":"September 4, 2021","format":false,"excerpt":"You can use list.index() method or dict.item() method to Get key from a value in Python Dictionary. Example dict getkey in Python Simple example code created a function \"getkey\" to return key for any value from dict. Using dict.item() Fetch key from a value. def getkey(val, dict1): for key, value\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python dict getkey","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-dict-getkey.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":32919,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-dictionary\/","url_meta":{"origin":18672,"position":5},"title":"Python list comprehension dictionary","author":"Rohit","date":"November 7, 2022","format":false,"excerpt":"Using the dict() method you can convert list comprehension to the dictionary in Python. Other methods are zip() with dict() method or Iterable. dict(list_comprehension) #OR dict(zip(key_list,value_list)) #OR {key: value for (key, value) in data} Python list comprehension dictionary Simple example code Using dict() method. data = [('A', 23), ('B', 15),\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/11\/Python-list-comprehension-dictionary.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/11\/Python-list-comprehension-dictionary.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/11\/Python-list-comprehension-dictionary.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/18672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/comments?post=18672"}],"version-history":[{"count":1,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/18672\/revisions"}],"predecessor-version":[{"id":40622,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/18672\/revisions\/40622"}],"wp:attachment":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/media?parent=18672"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/categories?post=18672"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/tags?post=18672"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/post_series?post=18672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}