{"id":5224,"date":"2019-12-07T09:15:12","date_gmt":"2019-12-07T03:45:12","guid":{"rendered":"https:\/\/blog.pheonixsolutions.com\/?p=5224"},"modified":"2019-12-08T00:09:02","modified_gmt":"2019-12-07T18:39:02","slug":"how-to-pass-two-or-more-lists-in-for-loop-using-python","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-pass-two-or-more-lists-in-for-loop-using-python\/","title":{"rendered":"HOW TO PASS TWO OR MORE LISTS IN FOR LOOP USING PYTHON"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">HOW TO PASS TWO OR MORE LISTS IN FOR LOOP USING PYTHON<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Date: 07\/12\/2019<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\">Introduction<\/h4>\n\n\n\n<p>Python has global built-ins that are handy for a regular problem. Specifically, I will explain <code>zip()<\/code> in this article.<\/p>\n\n\n\n<p>Let&#8217;s take an example from Avengers, <br>  <br>      Have to match the list of  Avengers characters with the persons who acted in the role. For example, We will pick up some characters such as Iron Man, Captain America, Thor and Groot (newly added avenger but still he is a Guardian).<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">avengers_characters=[\"Iron Man\",\"Captain America\",\"Thor\",\"Groot\"]\navengers_personalities=[\"Robert Downey JR\",\"Chris Evans\",\"Chris Hemsworth\",\"Vin diesel\"]<\/pre>\n\n\n\n<p>     Okay, now I want to print the matching characters with the persons who acted in the roles.<br> <br>     For that we have to use for loop right, Yes here it will be like<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">for characters,personalities in zip (avengers_characters,avengers_personalities) :\n    print(\"{} by {}\".format(characters,personalities))   <\/pre>\n\n\n\n<p>    Wait a minute. Don&#8217;t get confused about what is zip and why I used it. I will explain it.<\/p>\n\n\n\n<p><br>    By for loop we can iterate only one list but by using <strong>zip<\/strong> function we can iterate multiple lists parallelly,  where the first item in each passed iterator is paired together and then the second item in each passed iterator are paired together etc.. and even single list also be passed and results in a list of tuples. the <strong>format function is used to position formatting by the order of parentheses<\/strong> <strong>{}<\/strong> and value passing.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Syntax for zip:<\/h4>\n\n\n\n<p><br>         <strong>   zip(<em>iterator1, iterator2, iterator3 &#8230;<\/em>) <\/strong>   <br><br>Here is the output:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"284\" height=\"90\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-05-17-20-53-1.png\" alt=\"\" class=\"wp-image-5230\"\/><\/figure><\/div>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p> Note:<\/p><p>      In zip function , If passed iterators have different lengths, the iterator with the least items decides the length of the new iterator. ie If one list have 2 values and other lists have  3 values then the for loop  will  end  in the length of 2 and other one value will be discarded.<\/p><\/blockquote>\n\n\n\n<p>Here is the example for mismatching length of two lists and its Output:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">avengers_characters=[\"Iron Man\",\"Captain America\",\"Thor\",\"Groot\"]\navengers_personalities=[\"Robert Downey JR\",\"Chris Evans\",\"Chris Hemsworth\"]\n\nfor characters,personalities in zip(avengers_characters,avengers_personalities) :\n    print(\"{} by {}\".format(characters,personalities))<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"292\" height=\"75\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-06-09-27-51.png\" alt=\"\" class=\"wp-image-5252\"\/><\/figure><\/div>\n\n\n\n<p>To overcome this, there is a package in python called <strong>itertools<\/strong> in its there is function called <strong>izip_longest<\/strong> to perform up to the maximum length of the iterator .ie If one list has 2 values and other lists have 3 values then the for loop will execute up to the length of 3  and for missing value in a list will be filled by a default value called <strong>none<\/strong><\/p>\n\n\n\n<p>Here is the example of mismatching length of lists by using <strong>itertools<\/strong> and its output:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#some of the characters\navengers_characters=[\"Iron Man\",\"Captain America\",\"Thor\",\"Groot\"]\navengers_personalities=[\"Robert Downey JR\",\"Chris Evans\",\"Chris Hemsworth\"]\n\n\n#matching the avengers characters with the personalities who acted\nfor characters,personalities in itertools.izip_longest(avengers_characters,avengers_personalities) :\n    print(\"{} by {}\".format(characters,personalities))\n   <\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"268\" height=\"89\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-06-09-34-50-1.png\" alt=\"\" class=\"wp-image-5257\"\/><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Conclusion<\/h4>\n\n\n\n<p>Thank You for using <a href=\"https:\/\/pheonixsolutions.com\/\">pheonixsolutions<\/a>. <br>If you like the blog share it with your friends and others also.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HOW TO PASS TWO OR MORE LISTS IN FOR LOOP USING PYTHON Date: 07\/12\/2019 Introduction Python has global built-ins that are handy for a regular problem. Specifically, I will explain zip() in this article. Let&#8217;s take an example from Avengers, Have to match the list of Avengers characters with the&hellip; <a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-pass-two-or-more-lists-in-for-loop-using-python\/\" class=\"more-link read-more\" rel=\"bookmark\">Continue Reading <span class=\"screen-reader-text\">HOW TO PASS TWO OR MORE LISTS IN FOR LOOP USING PYTHON<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"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":[259,1],"tags":[600,292],"class_list":{"0":"post-5224","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-python","7":"category-uncategorized","8":"tag-list","9":"tag-python","10":"h-entry","12":"h-as-article"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pheonix Solutions - We Empower Your Business Growth<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-pass-two-or-more-lists-in-for-loop-using-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pheonix Solutions - We Empower Your Business Growth\" \/>\n<meta property=\"og:description\" content=\"HOW TO PASS TWO OR MORE LISTS IN FOR LOOP USING PYTHON Date: 07\/12\/2019 Introduction Python has global built-ins that are handy for a regular problem. Specifically, I will explain zip() in this article. Let&#8217;s take an example from Avengers, Have to match the list of Avengers characters with the&hellip; Continue Reading HOW TO PASS TWO OR MORE LISTS IN FOR LOOP USING PYTHON\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/blog\/how-to-pass-two-or-more-lists-in-for-loop-using-python\/\" \/>\n<meta property=\"og:site_name\" content=\"PHEONIXSOLUTIONS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-12-07T03:45:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-12-07T18:39:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-05-17-20-53-1.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:site\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-pass-two-or-more-lists-in-for-loop-using-python\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-pass-two-or-more-lists-in-for-loop-using-python\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\"},\"headline\":\"HOW TO PASS TWO OR MORE LISTS IN FOR LOOP USING PYTHON\",\"datePublished\":\"2019-12-07T03:45:12+00:00\",\"dateModified\":\"2019-12-07T18:39:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-pass-two-or-more-lists-in-for-loop-using-python\\\/\"},\"wordCount\":393,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-pass-two-or-more-lists-in-for-loop-using-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/Screenshot-from-2019-12-05-17-20-53-1.png\",\"keywords\":[\"List\",\"python\"],\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-pass-two-or-more-lists-in-for-loop-using-python\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-pass-two-or-more-lists-in-for-loop-using-python\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-pass-two-or-more-lists-in-for-loop-using-python\\\/\",\"name\":\"Pheonix Solutions - We Empower Your Business Growth\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-pass-two-or-more-lists-in-for-loop-using-python\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-pass-two-or-more-lists-in-for-loop-using-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/Screenshot-from-2019-12-05-17-20-53-1.png\",\"datePublished\":\"2019-12-07T03:45:12+00:00\",\"dateModified\":\"2019-12-07T18:39:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-pass-two-or-more-lists-in-for-loop-using-python\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-pass-two-or-more-lists-in-for-loop-using-python\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-pass-two-or-more-lists-in-for-loop-using-python\\\/#primaryimage\",\"url\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/Screenshot-from-2019-12-05-17-20-53-1.png\",\"contentUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/Screenshot-from-2019-12-05-17-20-53-1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-pass-two-or-more-lists-in-for-loop-using-python\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HOW TO PASS TWO OR MORE LISTS IN FOR LOOP USING PYTHON\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"name\":\"Pheonix Solutions\",\"description\":\"We Empower Your Business Growth\",\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\",\"name\":\"PheonixSolutions\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"width\":454,\"height\":300,\"caption\":\"PheonixSolutions\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/PheonixSolutions-209942982759387\\\/\",\"https:\\\/\\\/x.com\\\/pheonixsolution\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/blog.pheonixsolutions.com\"],\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pheonix Solutions - We Empower Your Business Growth","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:\/\/pheonixsolutions.com\/blog\/how-to-pass-two-or-more-lists-in-for-loop-using-python\/","og_locale":"en_US","og_type":"article","og_title":"Pheonix Solutions - We Empower Your Business Growth","og_description":"HOW TO PASS TWO OR MORE LISTS IN FOR LOOP USING PYTHON Date: 07\/12\/2019 Introduction Python has global built-ins that are handy for a regular problem. Specifically, I will explain zip() in this article. Let&#8217;s take an example from Avengers, Have to match the list of Avengers characters with the&hellip; Continue Reading HOW TO PASS TWO OR MORE LISTS IN FOR LOOP USING PYTHON","og_url":"https:\/\/pheonixsolutions.com\/blog\/how-to-pass-two-or-more-lists-in-for-loop-using-python\/","og_site_name":"PHEONIXSOLUTIONS","article_publisher":"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","article_published_time":"2019-12-07T03:45:12+00:00","article_modified_time":"2019-12-07T18:39:02+00:00","og_image":[{"url":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-05-17-20-53-1.png","type":"","width":"","height":""}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@pheonixsolution","twitter_site":"@pheonixsolution","twitter_misc":{"Written by":"admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-pass-two-or-more-lists-in-for-loop-using-python\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-pass-two-or-more-lists-in-for-loop-using-python\/"},"author":{"name":"admin","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503"},"headline":"HOW TO PASS TWO OR MORE LISTS IN FOR LOOP USING PYTHON","datePublished":"2019-12-07T03:45:12+00:00","dateModified":"2019-12-07T18:39:02+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-pass-two-or-more-lists-in-for-loop-using-python\/"},"wordCount":393,"commentCount":0,"publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-pass-two-or-more-lists-in-for-loop-using-python\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-05-17-20-53-1.png","keywords":["List","python"],"articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/blog\/how-to-pass-two-or-more-lists-in-for-loop-using-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-pass-two-or-more-lists-in-for-loop-using-python\/","url":"https:\/\/pheonixsolutions.com\/blog\/how-to-pass-two-or-more-lists-in-for-loop-using-python\/","name":"Pheonix Solutions - We Empower Your Business Growth","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-pass-two-or-more-lists-in-for-loop-using-python\/#primaryimage"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-pass-two-or-more-lists-in-for-loop-using-python\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-05-17-20-53-1.png","datePublished":"2019-12-07T03:45:12+00:00","dateModified":"2019-12-07T18:39:02+00:00","breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-pass-two-or-more-lists-in-for-loop-using-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/blog\/how-to-pass-two-or-more-lists-in-for-loop-using-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-pass-two-or-more-lists-in-for-loop-using-python\/#primaryimage","url":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-05-17-20-53-1.png","contentUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-05-17-20-53-1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-pass-two-or-more-lists-in-for-loop-using-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/blog\/"},{"@type":"ListItem","position":2,"name":"HOW TO PASS TWO OR MORE LISTS IN FOR LOOP USING PYTHON"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/blog\/#website","url":"https:\/\/pheonixsolutions.com\/blog\/","name":"Pheonix Solutions","description":"We Empower Your Business Growth","publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pheonixsolutions.com\/blog\/#organization","name":"PheonixSolutions","url":"https:\/\/pheonixsolutions.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","contentUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","width":454,"height":300,"caption":"PheonixSolutions"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","https:\/\/x.com\/pheonixsolution"]},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","caption":"admin"},"sameAs":["http:\/\/blog.pheonixsolutions.com"],"url":"https:\/\/pheonixsolutions.com\/blog\/author\/admin\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7F4uM-1mg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5224","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=5224"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5224\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=5224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=5224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=5224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}