{"id":22078,"date":"2021-11-17T18:40:15","date_gmt":"2021-11-17T13:10:15","guid":{"rendered":"https:\/\/tutorial.eyehunts.com\/?p=22078"},"modified":"2023-04-25T17:28:28","modified_gmt":"2023-04-25T11:58:28","slug":"python-copy-dictionary-copy-function","status":"publish","type":"post","link":"https:\/\/tutorial.eyehunts.com\/python\/python-copy-dictionary-copy-function\/","title":{"rendered":"Python copy dictionary | copy() function"},"content":{"rendered":"\n<p>Use <strong>copy() method <\/strong>to copy the dictionary in Python. This method returns a copy (shallow copy) of the dictionary and doesn\u2019t take any parameters.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dict.copy()<\/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 how to copy a dictionary in Python<\/strong><\/h2>\n\n\n\n<p>Simple example code.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>original = {1: 'A', 2: 'B'}\n\ncopy_dict = original.copy()\nprint(copy_dict)<\/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=\"255\" height=\"136\" src=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-copy-dictionary.jpg?resize=255%2C136&#038;ssl=1\" alt=\"Python copy dictionary\" class=\"wp-image-22410\"\/><\/figure><\/div>\n\n\n<p>If you need a deep copy (a copy that does not share references to the original object), you can use the <code>copy<\/code> module:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import copy\r\n\r\noriginal_dict = {'key1': &#91;1, 2], 'key2': 'value2'}\r\nnew_dict = copy.deepcopy(original_dict)\r<\/code><\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How is it different from simple assignment &#8220;=&#8221;?<\/strong><\/h3>\n\n\n\n<p><strong>Answer<\/strong>: Copying the dictionary using the copy() method creates a copy of the references from the original dictionary.<\/p>\n\n\n\n<p>Where the = operator creates a new reference to the original dictionary is created.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>original = {1:'one', 2:'two'}\nnew = original\n\n\n# removing all elements from the list\nnew.clear()\n\nprint('new: ', new)\nprint('original: ', original)<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>: <\/p>\n\n\n\n<p>new: {}<br>original: {}<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Comment if you have any doubts or suggestions on this Python copy() function code.<\/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>Use copy() method to copy the dictionary in Python. This method returns a copy (shallow copy) of the dictionary and doesn\u2019t take any parameters. Example how to copy a dictionary in Python Simple example code. Output: If you need a deep copy (a copy that does not share references to the original object), you can&hellip;&nbsp;<a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-copy-dictionary-copy-function\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Python copy dictionary | copy() function<\/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":[259,101],"post_series":[],"class_list":["post-22078","post","type-post","status-publish","format-standard","hentry","category-python","tag-python-copy","tag-python-dictionary"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python copy dictionary | copy() function<\/title>\n<meta name=\"description\" content=\"Use copy() method to copy dictionary in Python. This method returns a copy (shallow copy) of the dictionary and doesn\u2019t take any parameters.\" \/>\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\/python-copy-dictionary-copy-function\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python copy dictionary | copy() function\" \/>\n<meta property=\"og:description\" content=\"Use copy() method to copy dictionary in Python. This method returns a copy (shallow copy) of the dictionary and doesn\u2019t take any parameters.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tutorial.eyehunts.com\/python\/python-copy-dictionary-copy-function\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-17T13:10:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-25T11:58:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-copy-dictionary.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\/python-copy-dictionary-copy-function\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/python\/python-copy-dictionary-copy-function\/\",\"name\":\"Python copy dictionary | copy() function\",\"isPartOf\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-copy-dictionary-copy-function\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-copy-dictionary-copy-function\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-copy-dictionary.jpg\",\"datePublished\":\"2021-11-17T13:10:15+00:00\",\"dateModified\":\"2023-04-25T11:58:28+00:00\",\"author\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\"},\"description\":\"Use copy() method to copy dictionary in Python. This method returns a copy (shallow copy) of the dictionary and doesn\u2019t take any parameters.\",\"breadcrumb\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-copy-dictionary-copy-function\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tutorial.eyehunts.com\/python\/python-copy-dictionary-copy-function\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-copy-dictionary-copy-function\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-copy-dictionary.jpg?fit=255%2C136&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-copy-dictionary.jpg?fit=255%2C136&ssl=1\",\"width\":255,\"height\":136},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-copy-dictionary-copy-function\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tutorial.eyehunts.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python copy dictionary | copy() function\"}]},{\"@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":"Python copy dictionary | copy() function","description":"Use copy() method to copy dictionary in Python. This method returns a copy (shallow copy) of the dictionary and doesn\u2019t take any parameters.","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\/python-copy-dictionary-copy-function\/","og_locale":"en_US","og_type":"article","og_title":"Python copy dictionary | copy() function","og_description":"Use copy() method to copy dictionary in Python. This method returns a copy (shallow copy) of the dictionary and doesn\u2019t take any parameters.","og_url":"https:\/\/tutorial.eyehunts.com\/python\/python-copy-dictionary-copy-function\/","og_site_name":"Tutorial","article_published_time":"2021-11-17T13:10:15+00:00","article_modified_time":"2023-04-25T11:58:28+00:00","og_image":[{"url":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-copy-dictionary.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\/python-copy-dictionary-copy-function\/","url":"https:\/\/tutorial.eyehunts.com\/python\/python-copy-dictionary-copy-function\/","name":"Python copy dictionary | copy() function","isPartOf":{"@id":"https:\/\/tutorial.eyehunts.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-copy-dictionary-copy-function\/#primaryimage"},"image":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-copy-dictionary-copy-function\/#primaryimage"},"thumbnailUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-copy-dictionary.jpg","datePublished":"2021-11-17T13:10:15+00:00","dateModified":"2023-04-25T11:58:28+00:00","author":{"@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1"},"description":"Use copy() method to copy dictionary in Python. This method returns a copy (shallow copy) of the dictionary and doesn\u2019t take any parameters.","breadcrumb":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-copy-dictionary-copy-function\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tutorial.eyehunts.com\/python\/python-copy-dictionary-copy-function\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-copy-dictionary-copy-function\/#primaryimage","url":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-copy-dictionary.jpg?fit=255%2C136&ssl=1","contentUrl":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-copy-dictionary.jpg?fit=255%2C136&ssl=1","width":255,"height":136},{"@type":"BreadcrumbList","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-copy-dictionary-copy-function\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tutorial.eyehunts.com\/"},{"@type":"ListItem","position":2,"name":"Python copy dictionary | copy() function"}]},{"@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":22415,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-copy-dictionary-into-another-example-code\/","url_meta":{"origin":22078,"position":0},"title":"Python copy dictionary into another | Example code","author":"Rohit","date":"November 23, 2021","format":false,"excerpt":"Use the assignment operator to shallow copy a dictionary into another in Python. But if you want to use deep copy then use the deepcopy() method. Example copy a dictionary into another in Python Simple example code assign dict2 = dict1, not making a copy of dict1, it results in\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python copy dictionary into another","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-copy-dictionary-into-another.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":18599,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-dictionary-methods\/","url_meta":{"origin":22078,"position":1},"title":"Python dictionary methods","author":"Rohit","date":"July 17, 2023","format":false,"excerpt":"Python dictionary methods are built-in functions that can be called on dictionary objects to perform various operations. These methods provide a way to manipulate, access, and modify dictionaries in Python. Some common dictionary methods include: clear(): Removes all key-value pairs from the dictionary. my_dict.clear() copy(): Returns a shallow copy of\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\/2023\/07\/Python-dictionary-methods.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/07\/Python-dictionary-methods.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/07\/Python-dictionary-methods.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/07\/Python-dictionary-methods.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":22508,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-update-dictionary-value-example-code\/","url_meta":{"origin":22078,"position":2},"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":21724,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-dictionary-popitem-function-example-code\/","url_meta":{"origin":22078,"position":3},"title":"Python dictionary popitem function | Example code","author":"Rohit","date":"October 28, 2021","format":false,"excerpt":"If you want to remove the last inserted element from the dictionary then use the dictionary popitem function in Python. This method simply removes and returns the last element (key, value) pair inserted into the dictionary. dict.popitem() Python dictionary popitem example Simple example code. dict1 = {\"A\": 7, \"B\": 1,\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python dictionary popitem function","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/10\/Python-dictionary-popitem-function.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":41194,"url":"https:\/\/tutorial.eyehunts.com\/python\/dictionary-to-tuple-python\/","url_meta":{"origin":22078,"position":4},"title":"Dictionary to tuple Python","author":"Rohit","date":"July 24, 2023","format":false,"excerpt":"To convert a dictionary to a tuple in Python, you can use the items() method of the dictionary, which returns a list of tuples, each containing a key-value pair from the dictionary. Here's an example: # Sample dictionary my_dict = {'a': 1, 'b': 2, 'c': 3} # Convert dictionary to\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\/2023\/07\/Dictionary-to-tuple-Python-1.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/07\/Dictionary-to-tuple-Python-1.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/07\/Dictionary-to-tuple-Python-1.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/07\/Dictionary-to-tuple-Python-1.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":18619,"url":"https:\/\/tutorial.eyehunts.com\/python\/add-to-dictionary-python-example-code\/","url_meta":{"origin":22078,"position":5},"title":"Add to dictionary Python | Example code","author":"Rohit","date":"November 19, 2021","format":false,"excerpt":"The assign operator is the most used and preferred method to add key-value pairs to the dictionary. You can also use the update method. my_dict[key] = value Here, my_dict is the dictionary to which you want to add the key-value pair, key is the key you want to add, and\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Add to dictionary Python","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Add-to-dictionary-Python.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/22078","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=22078"}],"version-history":[{"count":1,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/22078\/revisions"}],"predecessor-version":[{"id":38748,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/22078\/revisions\/38748"}],"wp:attachment":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/media?parent=22078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/categories?post=22078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/tags?post=22078"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/post_series?post=22078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}