{"id":19499,"date":"2021-09-10T19:20:38","date_gmt":"2021-09-10T13:50:38","guid":{"rendered":"https:\/\/tutorial.eyehunts.com\/?p=19499"},"modified":"2022-05-09T18:14:14","modified_gmt":"2022-05-09T12:44:14","slug":"python-list-comprehension-if-else-example-code","status":"publish","type":"post","link":"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/","title":{"rendered":"Python list comprehension if else | Example code"},"content":{"rendered":"\n<p>You can use if-else in list comprehension to Conditional Outputs in Python. Do something if, else do something else.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;output if condition else output for l in list]<\/code><\/pre>\n\n\n\n<p><strong>Note<\/strong>: Use both if and else keywords otherwise a SyntaxError is thrown and elif does not apply here.<\/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>Python example if\/else in a list comprehension<\/strong><\/h2>\n\n\n\n<p>Simple example code. <\/p>\n\n\n\n<p>Creates a list from 0 to 9 through a list comprehension which iterates through the list and outputs either \u20180\u2019 or \u20181\u2019 for every number in the list. We use the <a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-operators-overview-examples\/\">modulo (%) operator<\/a> that returns the remainder of a division.<\/p>\n\n\n\n<p>A number is \u20180\u2019 if the remainder of the division by 5 is 0, otherwise, the number is \u20181\u2019.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nums = list(range(10))\nnum_classes = &#91;0 if num % 5 == 0 else 1 for num in nums]\nprint(num_classes)\n<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"391\" height=\"138\" src=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-list-comprehension-if-else.jpg?resize=391%2C138&#038;ssl=1\" alt=\"Python list comprehension if else\" class=\"wp-image-19522\"\/><\/figure><\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Another example<\/strong>: Conditionals in List Comprehension<\/p>\n\n\n\n<p><strong>Using if with List Comprehension<\/strong> to create the list by the items in range from 0-19 if the item&#8217;s value is divisible by 2.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>number_list = &#91;x for x in range(20) if x % 2 == 0]\n\nprint(number_list)<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>: [0, 2, 4, 6, 8, 10, 12, 14, 16, 18]<\/p>\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>Nested IF with List Comprehension<\/strong><\/h3>\n\n\n\n<p>If y satisfies both conditions, y is appended to num_list.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>num_list = &#91;y for y in range(50) if y % 2 == 0 if y % 5 == 0]\nprint(num_list)<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>: [0, 10, 20, 30, 40]<\/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 list 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>You can use if-else in list comprehension to Conditional Outputs in Python. Do something if, else do something else. Note: Use both if and else keywords otherwise a SyntaxError is thrown and elif does not apply here. Python example if\/else in a list comprehension Simple example code. Creates a list from 0 to 9 through&hellip;&nbsp;<a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Python list comprehension if else | 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":[197,181,83],"post_series":[],"class_list":["post-19499","post","type-post","status-publish","format-standard","hentry","category-python","tag-list-comprehension","tag-python-if","tag-python-list"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python list comprehension if else | Example code<\/title>\n<meta name=\"description\" content=\"You can use if-else in list comprehension to Conditional Outputs in Python. Do-something if, else do-something else.\" \/>\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-list-comprehension-if-else-example-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python list comprehension if else | Example code\" \/>\n<meta property=\"og:description\" content=\"You can use if-else in list comprehension to Conditional Outputs in Python. Do-something if, else do-something else.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-10T13:50:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-09T12:44:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-list-comprehension-if-else.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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/\",\"name\":\"Python list comprehension if else | Example code\",\"isPartOf\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-list-comprehension-if-else.jpg\",\"datePublished\":\"2021-09-10T13:50:38+00:00\",\"dateModified\":\"2022-05-09T12:44:14+00:00\",\"author\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\"},\"description\":\"You can use if-else in list comprehension to Conditional Outputs in Python. Do-something if, else do-something else.\",\"breadcrumb\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-list-comprehension-if-else.jpg?fit=391%2C138&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-list-comprehension-if-else.jpg?fit=391%2C138&ssl=1\",\"width\":391,\"height\":138},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tutorial.eyehunts.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python list comprehension if else | 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 list comprehension if else | Example code","description":"You can use if-else in list comprehension to Conditional Outputs in Python. Do-something if, else do-something else.","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-list-comprehension-if-else-example-code\/","og_locale":"en_US","og_type":"article","og_title":"Python list comprehension if else | Example code","og_description":"You can use if-else in list comprehension to Conditional Outputs in Python. Do-something if, else do-something else.","og_url":"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/","og_site_name":"Tutorial","article_published_time":"2021-09-10T13:50:38+00:00","article_modified_time":"2022-05-09T12:44:14+00:00","og_image":[{"url":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-list-comprehension-if-else.jpg","type":"","width":"","height":""}],"author":"Rohit","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rohit","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/","url":"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/","name":"Python list comprehension if else | Example code","isPartOf":{"@id":"https:\/\/tutorial.eyehunts.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/#primaryimage"},"image":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/#primaryimage"},"thumbnailUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-list-comprehension-if-else.jpg","datePublished":"2021-09-10T13:50:38+00:00","dateModified":"2022-05-09T12:44:14+00:00","author":{"@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1"},"description":"You can use if-else in list comprehension to Conditional Outputs in Python. Do-something if, else do-something else.","breadcrumb":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/#primaryimage","url":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-list-comprehension-if-else.jpg?fit=391%2C138&ssl=1","contentUrl":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-list-comprehension-if-else.jpg?fit=391%2C138&ssl=1","width":391,"height":138},{"@type":"BreadcrumbList","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-else-example-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tutorial.eyehunts.com\/"},{"@type":"ListItem","position":2,"name":"Python list comprehension if else | 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":19534,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-without-else-example-code\/","url_meta":{"origin":19499,"position":0},"title":"Python list comprehension if without else | Example code","author":"Rohit","date":"September 12, 2021","format":false,"excerpt":"We can use list comprehension using if without else in Python. num = [i for i in range(10) if i>=5] print(num) Python Example list comprehension if without else A simple example code compares 2 iterable and prints the items which appear in both iterable. a = [1, 2, 3, 4,\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python list comprehension if without else","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-list-comprehension-if-without-else-1.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":19528,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-if-elif-else-example-code\/","url_meta":{"origin":19499,"position":1},"title":"Python list comprehension if elif else | Example code","author":"Rohit","date":"September 12, 2021","format":false,"excerpt":"You can't use elif in list comprehension because it's not part of the if-else short-expression syntax in Python. Get the same logic with chaining: if b1: a elif b2: b else: c Becomes a if b1 else b if b2 else c Example list comprehension if elif else in Python\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python list comprehension if elif else","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-list-comprehension-if-elif-else.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":19526,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-elif-in-list-comprehension-conditionals-example-code\/","url_meta":{"origin":19499,"position":2},"title":"Python elif in list comprehension conditionals | Example code","author":"Rohit","date":"September 11, 2021","format":false,"excerpt":"There's no direct use \"elif\" construct ist comprehension conditionals, but it can be simulated with nested if\/else statements. Common if-else syntax ['Yes' if v == 1 else 'No' for v in l] The ternary form of the if\/else operator doesn't have an 'elif' built-in, but you can simulate it in\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python elif in list comprehension","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-elif-in-list-comprehension.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":19536,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-list-comprehension-filter-example-code\/","url_meta":{"origin":19499,"position":3},"title":"Python list comprehension filter | Example code","author":"Rohit","date":"September 11, 2021","format":false,"excerpt":"Use Conditional statements in list comprehension to filter out data (New list) in python. Generators and list comprehensions are more pythonic than chainable functions. Python example filtering elements in List Comprehensions Simple example code list comprehension with a filter or conditional statement. even_squares = [x * x for x in\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python list comprehension filter","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-list-comprehension-filter.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":16885,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-one-line-if-else-for-a-loop-example-code\/","url_meta":{"origin":19499,"position":4},"title":"Python one line if-else for a loop | Example code","author":"Rohit","date":"July 26, 2021","format":false,"excerpt":"Simple Python one line if-else for a loop example code. >>> [(i) for i in my_list if i==\"two\"] ['two'] For loop and if-else condition in one line python If and else inside a one-line python loop. Counting how many numbers in the list is above the 20. list1 = [10,\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python one line if-else for a loop","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/07\/Python-one-line-if-else-for-a-loop.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":19540,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-dict-comprehension-if-else-example-code\/","url_meta":{"origin":19499,"position":5},"title":"Python dict comprehension if-else | Example code","author":"Rohit","date":"September 13, 2021","format":false,"excerpt":"Python dictionary comprehension is a method for transforming one dictionary into a new dictionary. Using an if-else in Python dict comprehension is one of the ways to create a new list. It works as a condition to filter out dictionary elements for a new dictionary. { (some_key if condition else\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python dict comprehension if-else","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-dict-comprehension-if-else.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\/19499","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=19499"}],"version-history":[{"count":1,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/19499\/revisions"}],"predecessor-version":[{"id":29232,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/19499\/revisions\/29232"}],"wp:attachment":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/media?parent=19499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/categories?post=19499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/tags?post=19499"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/post_series?post=19499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}