{"id":17336,"date":"2021-08-03T10:40:53","date_gmt":"2021-08-03T05:10:53","guid":{"rendered":"https:\/\/tutorial.eyehunts.com\/?p=17336"},"modified":"2021-09-29T18:31:01","modified_gmt":"2021-09-29T13:01:01","slug":"iterate-backward-python-example-code","status":"publish","type":"post","link":"https:\/\/tutorial.eyehunts.com\/python\/iterate-backward-python-example-code\/","title":{"rendered":"Iterate backward Python | Example code"},"content":{"rendered":"\n<p>The <a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-lists-tutorial-example\/\">list <\/a>can Iterate backward in Python if read the last element first and then the last but one and so on till the element is at index 0.<\/p>\n\n\n\n<p>To get  Backward iteration in Python you can use the range function, List Comprehension, or reversed() function.<\/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 Backward iteration in Python<\/strong><\/h2>\n\n\n\n<p>Python example codes.<\/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>Using range() Function <\/strong><\/h3>\n\n\n\n<p>Starting with position -1 to read the list from the last index value also iterate through steps of -1.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>list1 = &#91;'Mon', 'Tue', 'Wed', 'Thu']\n\nfor i in range(len(list1) - 1, -1, -1):\n    print(list1&#91;i], end=' ')\n<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>: Using end keyword in print to get values in a single line.<\/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=\"311\" height=\"146\" src=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/08\/Iterate-backward-Python.jpg?resize=311%2C146&#038;ssl=1\" alt=\"Iterate backward Python\" class=\"wp-image-17433\"\/><\/figure><\/div>\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>List Comprehension and [::-1]<\/strong><\/h3>\n\n\n\n<p>This way slicing the list which starts from position -1 and goes back to the first position. And use <a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-for-loops-tutorial-example\/\">for loop <\/a>with an iterator used as the index of the element in the list.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>list1 = &#91;\"A\", \"B\", \"C\", \"D\"]\n\nfor i in list1&#91;::-1]:\n    print(i, end=\" \")\n<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>: D C B A<\/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>Using reversed() function<\/strong><\/h3>\n\n\n\n<p>The reversed() function is very straight forward it&#8217;s simply picking the list items and prints them in the reverse order.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>list1 = &#91;1, 2, 3, 4]\nfor i in reversed(list1):\n    print(i)\n<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>: <\/p>\n\n\n\n<p>4<br>3<br>2<br>1<\/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>How to loop backward in python?<\/strong><\/h3>\n\n\n\n<p>You can do:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>for item in my_list&#91;::-1]:\n    print item<\/code><\/pre>\n\n\n\n<p>The <code>[::-1]<\/code> slice reverses the list in the for loop (but won&#8217;t actually modify your list &#8220;permanently&#8221;).<\/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><strong>How to count backward in for loop python?<\/strong><\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># for i in range(start, end, step)\nfor i in range(5, 0, -1):\n    print(i)<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n\n<p>5<br>4<br>3<br>2<br>1<\/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 and suggestions on this Python iteration 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>The list can Iterate backward in Python if read the last element first and then the last but one and so on till the element is at index 0. To get Backward iteration in Python you can use the range function, List Comprehension, or reversed() function. Example Backward iteration in Python Python example codes. Using&hellip;&nbsp;<a href=\"https:\/\/tutorial.eyehunts.com\/python\/iterate-backward-python-example-code\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Iterate backward 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":[136,36],"post_series":[],"class_list":["post-17336","post","type-post","status-publish","format-standard","hentry","category-python","tag-python-code","tag-python-loops"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Iterate backward Python | Example code - EyeHunts<\/title>\n<meta name=\"description\" content=\"The list can Iterate backward in Python if read the last element first and then the last but one and so on till the element is at index 0.\" \/>\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\/iterate-backward-python-example-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Iterate backward Python | Example code - EyeHunts\" \/>\n<meta property=\"og:description\" content=\"The list can Iterate backward in Python if read the last element first and then the last but one and so on till the element is at index 0.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tutorial.eyehunts.com\/python\/iterate-backward-python-example-code\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-03T05:10:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-29T13:01:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/08\/Iterate-backward-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=\"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\/iterate-backward-python-example-code\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/python\/iterate-backward-python-example-code\/\",\"name\":\"Iterate backward Python | Example code - EyeHunts\",\"isPartOf\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/iterate-backward-python-example-code\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/iterate-backward-python-example-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/08\/Iterate-backward-Python.jpg\",\"datePublished\":\"2021-08-03T05:10:53+00:00\",\"dateModified\":\"2021-09-29T13:01:01+00:00\",\"author\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\"},\"description\":\"The list can Iterate backward in Python if read the last element first and then the last but one and so on till the element is at index 0.\",\"breadcrumb\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/iterate-backward-python-example-code\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tutorial.eyehunts.com\/python\/iterate-backward-python-example-code\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/iterate-backward-python-example-code\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/08\/Iterate-backward-Python.jpg?fit=311%2C146&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/08\/Iterate-backward-Python.jpg?fit=311%2C146&ssl=1\",\"width\":311,\"height\":146},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/iterate-backward-python-example-code\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tutorial.eyehunts.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Iterate backward 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":"Iterate backward Python | Example code - EyeHunts","description":"The list can Iterate backward in Python if read the last element first and then the last but one and so on till the element is at index 0.","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\/iterate-backward-python-example-code\/","og_locale":"en_US","og_type":"article","og_title":"Iterate backward Python | Example code - EyeHunts","og_description":"The list can Iterate backward in Python if read the last element first and then the last but one and so on till the element is at index 0.","og_url":"https:\/\/tutorial.eyehunts.com\/python\/iterate-backward-python-example-code\/","og_site_name":"Tutorial","article_published_time":"2021-08-03T05:10:53+00:00","article_modified_time":"2021-09-29T13:01:01+00:00","og_image":[{"url":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/08\/Iterate-backward-Python.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\/iterate-backward-python-example-code\/","url":"https:\/\/tutorial.eyehunts.com\/python\/iterate-backward-python-example-code\/","name":"Iterate backward Python | Example code - EyeHunts","isPartOf":{"@id":"https:\/\/tutorial.eyehunts.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/iterate-backward-python-example-code\/#primaryimage"},"image":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/iterate-backward-python-example-code\/#primaryimage"},"thumbnailUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/08\/Iterate-backward-Python.jpg","datePublished":"2021-08-03T05:10:53+00:00","dateModified":"2021-09-29T13:01:01+00:00","author":{"@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1"},"description":"The list can Iterate backward in Python if read the last element first and then the last but one and so on till the element is at index 0.","breadcrumb":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/iterate-backward-python-example-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tutorial.eyehunts.com\/python\/iterate-backward-python-example-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/python\/iterate-backward-python-example-code\/#primaryimage","url":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/08\/Iterate-backward-Python.jpg?fit=311%2C146&ssl=1","contentUrl":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/08\/Iterate-backward-Python.jpg?fit=311%2C146&ssl=1","width":311,"height":146},{"@type":"BreadcrumbList","@id":"https:\/\/tutorial.eyehunts.com\/python\/iterate-backward-python-example-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tutorial.eyehunts.com\/"},{"@type":"ListItem","position":2,"name":"Iterate backward 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":17321,"url":"https:\/\/tutorial.eyehunts.com\/python\/reverse-for-loop-in-python-example-code\/","url_meta":{"origin":17336,"position":0},"title":"Reverse for loop in Python | Example code","author":"Rohit","date":"August 9, 2021","format":false,"excerpt":"To reverse for loop in Python just need to read the last element first and then the last but one and so on till the element is at index 0. You can do it with the range function, List Comprehension, or reversed() function. Example Reverse for loop in Python Simple\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Reverse for loop in Python","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/08\/Reverse-for-loop-in-Python.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":22087,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-iterate-list-with-index-example-code\/","url_meta":{"origin":17336,"position":1},"title":"Python iterate list with index | Example code","author":"Rohit","date":"November 11, 2021","format":false,"excerpt":"Use the built-in function enumerate() to access the index in a for loop while iterating a list in Python. for idx, val in enumerate(ints): print(idx, val) Note: Using an additional state variable, such as an index variable (which you would normally use in languages such as C or PHP), is\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python iterate list with index","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-iterate-list-with-index.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":17319,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-for-loop-backward-example-code\/","url_meta":{"origin":17336,"position":2},"title":"Python for loop Backward | Example code","author":"Rohit","date":"September 9, 2021","format":false,"excerpt":"Using reversed() or range(N, -1, -1) method to do for loop Backward iteration in Python. For example for loop backward in Python Simple example code looping backward and having shorthands to do it. Using reversed() function Use the reversed function for the for loop and the iteration will start occurring\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python for loop Backward","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-for-loop-Backward.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":17729,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-iterate-string-example-code\/","url_meta":{"origin":17336,"position":3},"title":"Python iterate string | Example code","author":"Rohit","date":"November 3, 2021","format":false,"excerpt":"Simply use loops like (for loop & while loop) to iterate strings in Python. In this tutorial, we will find out different ways to iterate strings in Python. Python iterate string example Simple example code s = \"Hello\" for ch in s: print(ch, \"index :\", s.index(ch)) Output: Iterate String with\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python iterate string","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/11\/Python-iterate-string.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":17694,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-iteration\/","url_meta":{"origin":17336,"position":4},"title":"Python iteration","author":"Rohit","date":"November 14, 2022","format":false,"excerpt":"The Repeated execution of a set of statements is called iteration in Python. Iteration means taking an object like a list or a tuple (an object that has more than one value) and going through those values. Python iteration Simple example code Using Iterations in Python Effectively. Use of for-in\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python iteration","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/11\/Python-iteration.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":41254,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-for-loop-range\/","url_meta":{"origin":17336,"position":5},"title":"Python for loop range","author":"Rohit","date":"July 25, 2023","format":false,"excerpt":"In Python, the for loop is used to iterate over a sequence (such as a list, tuple, string, or range) and perform some operation on each item within the sequence. The range() function is often used in conjunction with the for loop to generate a sequence of numbers. The basic\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-for-loop-range.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\/17336","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=17336"}],"version-history":[{"count":1,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/17336\/revisions"}],"predecessor-version":[{"id":20462,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/17336\/revisions\/20462"}],"wp:attachment":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/media?parent=17336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/categories?post=17336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/tags?post=17336"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/post_series?post=17336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}