{"id":22210,"date":"2021-11-15T10:38:13","date_gmt":"2021-11-15T05:08:13","guid":{"rendered":"https:\/\/tutorial.eyehunts.com\/?p=22210"},"modified":"2023-04-10T18:13:00","modified_gmt":"2023-04-10T12:43:00","slug":"python-enum-get-all-values-example-code","status":"publish","type":"post","link":"https:\/\/tutorial.eyehunts.com\/python\/python-enum-get-all-values-example-code\/","title":{"rendered":"Python enum get all values | Example code"},"content":{"rendered":"\n<p>Use the <strong>IntEnum <\/strong>or <strong>loop <\/strong>through it to enum get all values in Python. The resulting list contains the enum members, which are instances of the enum class, so they have both a name and a value.<\/p>\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 all values from an enum class<\/strong><\/h2>\n\n\n\n<p>A simple example program gets all values from an enum class. You have to also use the <a href=\"https:\/\/tutorial.eyehunts.com\/python\/list-attributes-python-basics\/\">list <\/a>and <a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-map-function-data-structure-example\/\">map function<\/a> in this example.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from enum import IntEnum\n\n\nclass Country(IntEnum):\n    Afghanistan = 93\n    Albania = 355\n    Algeria = 213\n\n\ncountry_codes = list(map(int, Country))\nprint(country_codes)\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=\"236\" height=\"122\" src=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-enum-get-all-values.jpg?resize=236%2C122&#038;ssl=1\" alt=\"Python enum get all values\" class=\"wp-image-22246\"\/><\/figure><\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Another example<\/strong><\/p>\n\n\n\n<p>Using <a href=\"https:\/\/tutorial.eyehunts.com\/python\/list-comprehension-nested-for-loop-example-code\/\">list comprehension<\/a>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from enum import Enum\n\n\nclass Color(Enum):\n    RED = 1\n    BLUE = 2\n\n\nres = &#91;e.value for e in Color]\nprint(res)<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>: [1, 2]<\/p>\n\n\n\n<p>Or you can get all the values of an enum by using the <code>list()<\/code> function on the enum class.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from enum import Enum\r\n\r\nclass Color(Enum):\r\n    RED = 1\r\n    GREEN = 2\r\n    BLUE = 3\r\n\r\nvalues = list(Color)\r\n\r\nprint(values)  # Output: &#91;&lt;Color.RED: 1>, &lt;Color.GREEN: 2>, &lt;Color.BLUE: 3>]\r<\/code><\/pre>\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 enum 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>Use the IntEnum or loop through it to enum get all values in Python. The resulting list contains the enum members, which are instances of the enum class, so they have both a name and a value. Example Get all values from an enum class A simple example program gets all values from an enum&hellip;&nbsp;<a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-enum-get-all-values-example-code\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Python enum get all values | 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":[136,257],"post_series":[],"class_list":["post-22210","post","type-post","status-publish","format-standard","hentry","category-python","tag-python-code","tag-python-enumerate"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python enum get all values | Example code<\/title>\n<meta name=\"description\" content=\"Use the IntEnum or loop through it to enum get all values in Python. Simple example program to get all values from an enum class. You have...\" \/>\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-enum-get-all-values-example-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python enum get all values | Example code\" \/>\n<meta property=\"og:description\" content=\"Use the IntEnum or loop through it to enum get all values in Python. Simple example program to get all values from an enum class. You have...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tutorial.eyehunts.com\/python\/python-enum-get-all-values-example-code\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-15T05:08:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-10T12:43:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-enum-get-all-values.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-enum-get-all-values-example-code\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/python\/python-enum-get-all-values-example-code\/\",\"name\":\"Python enum get all values | Example code\",\"isPartOf\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-enum-get-all-values-example-code\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-enum-get-all-values-example-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-enum-get-all-values.jpg\",\"datePublished\":\"2021-11-15T05:08:13+00:00\",\"dateModified\":\"2023-04-10T12:43:00+00:00\",\"author\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\"},\"description\":\"Use the IntEnum or loop through it to enum get all values in Python. Simple example program to get all values from an enum class. You have...\",\"breadcrumb\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-enum-get-all-values-example-code\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tutorial.eyehunts.com\/python\/python-enum-get-all-values-example-code\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-enum-get-all-values-example-code\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-enum-get-all-values.jpg?fit=236%2C122&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-enum-get-all-values.jpg?fit=236%2C122&ssl=1\",\"width\":236,\"height\":122},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-enum-get-all-values-example-code\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tutorial.eyehunts.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python enum get all values | 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":"Python enum get all values | Example code","description":"Use the IntEnum or loop through it to enum get all values in Python. Simple example program to get all values from an enum class. You have...","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-enum-get-all-values-example-code\/","og_locale":"en_US","og_type":"article","og_title":"Python enum get all values | Example code","og_description":"Use the IntEnum or loop through it to enum get all values in Python. Simple example program to get all values from an enum class. You have...","og_url":"https:\/\/tutorial.eyehunts.com\/python\/python-enum-get-all-values-example-code\/","og_site_name":"Tutorial","article_published_time":"2021-11-15T05:08:13+00:00","article_modified_time":"2023-04-10T12:43:00+00:00","og_image":[{"url":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-enum-get-all-values.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-enum-get-all-values-example-code\/","url":"https:\/\/tutorial.eyehunts.com\/python\/python-enum-get-all-values-example-code\/","name":"Python enum get all values | Example code","isPartOf":{"@id":"https:\/\/tutorial.eyehunts.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-enum-get-all-values-example-code\/#primaryimage"},"image":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-enum-get-all-values-example-code\/#primaryimage"},"thumbnailUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-enum-get-all-values.jpg","datePublished":"2021-11-15T05:08:13+00:00","dateModified":"2023-04-10T12:43:00+00:00","author":{"@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1"},"description":"Use the IntEnum or loop through it to enum get all values in Python. Simple example program to get all values from an enum class. You have...","breadcrumb":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-enum-get-all-values-example-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tutorial.eyehunts.com\/python\/python-enum-get-all-values-example-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-enum-get-all-values-example-code\/#primaryimage","url":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-enum-get-all-values.jpg?fit=236%2C122&ssl=1","contentUrl":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-enum-get-all-values.jpg?fit=236%2C122&ssl=1","width":236,"height":122},{"@type":"BreadcrumbList","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-enum-get-all-values-example-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tutorial.eyehunts.com\/"},{"@type":"ListItem","position":2,"name":"Python enum get all values | 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":22212,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-enum-multiple-values-example-code\/","url_meta":{"origin":22210,"position":0},"title":"Python enum multiple values | Example code","author":"Rohit","date":"November 14, 2021","format":false,"excerpt":"Use MultiValueEnum to get enum multiple values in Python. You have to install and import aenum library and this is the easiest way. To access the values of an enumeration, you can use dot notation: Python enum with multiple values example Simple example code. from aenum import MultiValueEnum class DType(MultiValueEnum):\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python enum multiple values","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-enum-multiple-values.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":22208,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-enum-get-value-example-code\/","url_meta":{"origin":22210,"position":1},"title":"Python enum get value | Example code","author":"Rohit","date":"November 15, 2021","format":false,"excerpt":"Use the value attribute in the enum if you want to get value in Python. This allows you to work with the underlying values of the enumerated constants defined in the Enum class. Python enum get value example A simple example code has defined the enum and prints the value.\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python enum get value","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-enum-get-value.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":22189,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-string-to-enum-example-code\/","url_meta":{"origin":22210,"position":2},"title":"Python string to enum | Example code","author":"Rohit","date":"November 14, 2021","format":false,"excerpt":"In Python, you can use the enum module to define an enumeration class, which is a set of named values. To convert a string to an enumeration value, you can use the getattr() function to get the value of the attribute with the corresponding name. The value returned is an\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python string to enum","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-string-to-enum.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":36605,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-constant-dictionary\/","url_meta":{"origin":22210,"position":3},"title":"Python constant dictionary","author":"Rohit","date":"March 7, 2023","format":false,"excerpt":"There is no constant in Python, so a truly constant dictionary is not possible. However, you can create a constant by using a dictionary that is read-only (i.e., can't be modified after initialization) and contains key-value pairs that represent the constant values. Python constant dictionary example Simple example code makes\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\/03\/Python-constant-dictionary.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/03\/Python-constant-dictionary.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/03\/Python-constant-dictionary.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/03\/Python-constant-dictionary.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":3771,"url":"https:\/\/tutorial.eyehunts.com\/java\/java-enum-example-enumeration-string-constructor\/","url_meta":{"origin":22210,"position":4},"title":"Java Enum Example | Enumeration | String | Constructor and Methods","author":"Rohit","date":"December 28, 2018","format":false,"excerpt":"A Java Enum is a special data type, Where this data type has\u00a0a group of predefined constants variables. A Variable has a predefined value (unchangeable variables, like\u00a0final\u00a0variables). For example\u00a0A days in a week - Mon, Tus...etc. The direction in earth North, East, West, and South. That both are predefined equal\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/tutorial.eyehunts.com\/category\/java\/"},"img":{"alt_text":"Java Enum Example Enumeration String Constructor and Methods","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2018\/12\/Java-Enum-Example-Enumeration-String-Constructor-and-Methods.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2018\/12\/Java-Enum-Example-Enumeration-String-Constructor-and-Methods.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2018\/12\/Java-Enum-Example-Enumeration-String-Constructor-and-Methods.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2018\/12\/Java-Enum-Example-Enumeration-String-Constructor-and-Methods.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":18531,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-function-returns-multiple-values-example-code\/","url_meta":{"origin":22210,"position":5},"title":"Python function returns multiple values | Example code","author":"Rohit","date":"August 25, 2021","format":false,"excerpt":"There are many ways to Python function return multiple values like using a comma but that is returned in the form of a tuple. Other ways are using a tuple, list, and dictionary. Example function return multiple values in Python Simple example code. Using comma Python function returns multiple values\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python function returns multiple values","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/08\/Python-function-returns-multiple-values.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\/22210","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=22210"}],"version-history":[{"count":1,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/22210\/revisions"}],"predecessor-version":[{"id":38112,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/22210\/revisions\/38112"}],"wp:attachment":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/media?parent=22210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/categories?post=22210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/tags?post=22210"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/post_series?post=22210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}