{"id":19694,"date":"2021-09-13T18:44:12","date_gmt":"2021-09-13T13:14:12","guid":{"rendered":"https:\/\/tutorial.eyehunts.com\/?p=19694"},"modified":"2022-05-20T18:12:19","modified_gmt":"2022-05-20T12:42:19","slug":"python-lambda-list-examples-code","status":"publish","type":"post","link":"https:\/\/tutorial.eyehunts.com\/python\/python-lambda-list-examples-code\/","title":{"rendered":"Python lambda list | Examples code"},"content":{"rendered":"\n<p>Using lambda you can create a new list based on conditions. Python lambda can list filtering with multiple conditions. It&#8217;s also used in different functions like <a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-map-function-data-structure-example\/\">map()<\/a>, <a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-sort-string-alphabetically-ways-to-sort-letters-of-string-alphabetically\/\">reduce()<\/a>, <a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-filter-vs-list-comprehension-difference\/\">filter()<\/a>, etc.<\/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 lambda list in Python<\/strong><\/h2>\n\n\n\n<p>Simple example code <strong>Map function using lambda in python<\/strong>.<\/p>\n\n\n\n<p>Square the given list.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nums1 = &#91;1, 2, 3, 4, 5]\nsq = list(map(lambda a: a * a, nums1))\n\nprint(sq)\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=\"225\" height=\"122\" src=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-lambda-list.jpg?resize=225%2C122&#038;ssl=1\" alt=\"Python lambda list\" class=\"wp-image-19709\"\/><\/figure><\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Reduce function using lambda<\/strong><\/p>\n\n\n\n<p>Sum of the given list.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from functools import reduce\n\nlist2 = &#91;1, 2, 3, 4, 5]\nfins = reduce(lambda x, y: x + y, list2)\nprint(fins)\n<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>: 15<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Use Lambda function inside the filter()<\/strong><\/p>\n\n\n\n<p>The filter() function in Python takes in a function and a list as arguments. Use the <a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-anonymous-function-defined-with-no-names\/\">anonymous function<\/a> to filter and compare if divisible or not by 5.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>my_list = &#91;10, 65, 54, 99, 102, 339]\n\n# use anonymous function\nres = list(filter(lambda x: (x % 5 == 0), my_list))\n\nprint(res)<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>: [10, 65]<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Lambda function in list comprehensions<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>res = &#91;x * x for x in range(10)]\n\nprint(res)\n<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>: [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]<\/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 lambda tutorial.<\/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>Using lambda you can create a new list based on conditions. Python lambda can list filtering with multiple conditions. It&#8217;s also used in different functions like map(), reduce(), filter(), etc. Example lambda list in Python Simple example code Map function using lambda in python. Square the given list. Output: Reduce function using lambda Sum of&hellip;&nbsp;<a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-lambda-list-examples-code\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Python lambda list | Examples 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":[201,83],"post_series":[],"class_list":["post-19694","post","type-post","status-publish","format-standard","hentry","category-python","tag-python-lambda","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 lambda list | Examples<\/title>\n<meta name=\"description\" content=\"Using lambda you can create a new list based on conditions. Python lambda can list filtering with multiple conditions. It&#039;s also used in...\" \/>\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-lambda-list-examples-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python lambda list | Examples\" \/>\n<meta property=\"og:description\" content=\"Using lambda you can create a new list based on conditions. Python lambda can list filtering with multiple conditions. It&#039;s also used in...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tutorial.eyehunts.com\/python\/python-lambda-list-examples-code\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-13T13:14:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-20T12:42:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-lambda-list.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-lambda-list-examples-code\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/python\/python-lambda-list-examples-code\/\",\"name\":\"Python lambda list | Examples\",\"isPartOf\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-lambda-list-examples-code\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-lambda-list-examples-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-lambda-list.jpg\",\"datePublished\":\"2021-09-13T13:14:12+00:00\",\"dateModified\":\"2022-05-20T12:42:19+00:00\",\"author\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\"},\"description\":\"Using lambda you can create a new list based on conditions. Python lambda can list filtering with multiple conditions. It's also used in...\",\"breadcrumb\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-lambda-list-examples-code\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tutorial.eyehunts.com\/python\/python-lambda-list-examples-code\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-lambda-list-examples-code\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-lambda-list.jpg?fit=225%2C122&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-lambda-list.jpg?fit=225%2C122&ssl=1\",\"width\":225,\"height\":122},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-lambda-list-examples-code\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tutorial.eyehunts.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python lambda list | Examples 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 lambda list | Examples","description":"Using lambda you can create a new list based on conditions. Python lambda can list filtering with multiple conditions. It's also used in...","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-lambda-list-examples-code\/","og_locale":"en_US","og_type":"article","og_title":"Python lambda list | Examples","og_description":"Using lambda you can create a new list based on conditions. Python lambda can list filtering with multiple conditions. It's also used in...","og_url":"https:\/\/tutorial.eyehunts.com\/python\/python-lambda-list-examples-code\/","og_site_name":"Tutorial","article_published_time":"2021-09-13T13:14:12+00:00","article_modified_time":"2022-05-20T12:42:19+00:00","og_image":[{"url":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-lambda-list.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-lambda-list-examples-code\/","url":"https:\/\/tutorial.eyehunts.com\/python\/python-lambda-list-examples-code\/","name":"Python lambda list | Examples","isPartOf":{"@id":"https:\/\/tutorial.eyehunts.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-lambda-list-examples-code\/#primaryimage"},"image":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-lambda-list-examples-code\/#primaryimage"},"thumbnailUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-lambda-list.jpg","datePublished":"2021-09-13T13:14:12+00:00","dateModified":"2022-05-20T12:42:19+00:00","author":{"@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1"},"description":"Using lambda you can create a new list based on conditions. Python lambda can list filtering with multiple conditions. It's also used in...","breadcrumb":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-lambda-list-examples-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tutorial.eyehunts.com\/python\/python-lambda-list-examples-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-lambda-list-examples-code\/#primaryimage","url":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-lambda-list.jpg?fit=225%2C122&ssl=1","contentUrl":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-lambda-list.jpg?fit=225%2C122&ssl=1","width":225,"height":122},{"@type":"BreadcrumbList","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-lambda-list-examples-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tutorial.eyehunts.com\/"},{"@type":"ListItem","position":2,"name":"Python lambda list | Examples 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":19696,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-maplambda-function-example-code\/","url_meta":{"origin":19694,"position":0},"title":"Python map(lambda) function | Example code","author":"Rohit","date":"September 14, 2021","format":false,"excerpt":"Python map() function is an inbuilt function that takes a lambda function and applies that function to all the elements of specified iterable and returns map objects. The map is often used with a lambda function. Read: Python Lambda Function Python example map lambda function Simple example code map function\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python map(lambda)","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-map-lambda.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":19680,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-lambda-example-code\/","url_meta":{"origin":19694,"position":1},"title":"Python lambda example | Code","author":"Rohit","date":"September 16, 2021","format":false,"excerpt":"As you know lambda expression is used to create a function without any name. We will see different Python lambda example program codes in this tutorial. Syntax lambda argument(s): expression Python lambda examples Simple example code. Single argument adding example Execute a lambda function on a single value. res =\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\/2021\/09\/Python-Lambda-example-with-apply-function-by-Pandas.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":41640,"url":"https:\/\/tutorial.eyehunts.com\/python\/lambda-function-in-python-list\/","url_meta":{"origin":19694,"position":2},"title":"Lambda function in Python list","author":"Rohit","date":"August 9, 2023","format":false,"excerpt":"A lambda function in Python is a concise way to create small, anonymous functions. They are often used in combination with functions like map, filter, and sorted to perform quick operations on lists. Here's the syntax of using a lambda function in Python with lists: map with a Lambda Function:\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\/08\/Lambda-function-in-Python-list.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/08\/Lambda-function-in-Python-list.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/08\/Lambda-function-in-Python-list.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":36261,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-all-lambda\/","url_meta":{"origin":19694,"position":3},"title":"Python all lambda","author":"Rohit","date":"February 23, 2023","format":false,"excerpt":"Python all lambda is not needed because simple list comprehension can do the same work. In this tutorial, we tried to use all() function with lambda. Python all lambda example Simple example code. good_foods = ['apple', 'carrot']junk_foods = ['soda', 'burger']my_foods = ['banana', 'carrot', 'bread', 'apple', 'soda']res = all(map(lambda x: x\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python all lambda","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/02\/Python-all-lambda.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":19519,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-anonymous-function-defined-with-no-names\/","url_meta":{"origin":19694,"position":4},"title":"Python Anonymous function | Function defined with no names","author":"Rohit","date":"September 13, 2021","format":false,"excerpt":"The function without a name is called the Anonymous function in Python. Normally functions are defined using the def keyword in Python but anonymous functions are defined using the lambda keyword. Syntax lambda arguments : expression It's also called the lambda function because it is defined with the lambda keyword.\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python Anonymous function","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-Anonymous-function.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":19770,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-list-sort-lambda-expression-example-code\/","url_meta":{"origin":19694,"position":5},"title":"Python list sort lambda expression | Example code","author":"Rohit","date":"December 16, 2021","format":false,"excerpt":"Use the list sort() method to sort with a lambda expression in Python. Both list.sort() and sorted() have a key parameter to specify a function to be called on each list element prior to making comparisons. Example of how to sort with lambda in Python Simple example code Call list\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python list sort lambda expression","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-list-sort-lambda-expression.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-list-sort-lambda-expression.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-list-sort-lambda-expression.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\/19694","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=19694"}],"version-history":[{"count":1,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/19694\/revisions"}],"predecessor-version":[{"id":29706,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/19694\/revisions\/29706"}],"wp:attachment":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/media?parent=19694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/categories?post=19694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/tags?post=19694"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/post_series?post=19694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}