<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>python zip different length - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/python-zip-different-length/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/python-zip-different-length/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Tue, 16 Aug 2022 12:13:09 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>python zip different length - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/python-zip-different-length/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is zip () function in Python ?</title>
		<link>https://www.wikitechy.com/interview-questions/python/what-is-zip-function-in-python/</link>
					<comments>https://www.wikitechy.com/interview-questions/python/what-is-zip-function-in-python/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Tue, 16 Aug 2022 12:13:09 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[how does zip function work in python]]></category>
		<category><![CDATA[print zip object python]]></category>
		<category><![CDATA[python for loop zip two lists]]></category>
		<category><![CDATA[python zip different length]]></category>
		<category><![CDATA[python zip folder]]></category>
		<category><![CDATA[python zip function documentation]]></category>
		<category><![CDATA[what does zip() do in python]]></category>
		<category><![CDATA[what is zip function in python]]></category>
		<category><![CDATA[what is zip() in python]]></category>
		<category><![CDATA[zip and unzip in python]]></category>
		<category><![CDATA[zip dictionary python]]></category>
		<category><![CDATA[zip function in python is used for]]></category>
		<category><![CDATA[zip list python]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4724</guid>

					<description><![CDATA[In python zip () method takes container or iterable and returns a single iterator object, having mapped values from all the containers. Zip () method is used tomap the similar index of multiple containers so that they can be used just using a single entity. It returns a single iterator object, having mapped values from all the [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li>In python zip () method takes container or iterable and returns a single iterator object, having mapped values from all the containers.</li>
<li>Zip () method is used tomap the similar index of multiple containers so that they can be used just using a single entity.</li>
<li>It returns a single iterator object, having mapped values from all the containers.</li>
</ul>
<h3 id="for-example-in-zip-two-lists"><strong>For example, in zip two lists,</strong></h3>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-python code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-python code-embed-code">name = [ &quot;Venkat&quot;, &quot;Nizar&quot;, &quot;Akash&quot;, &quot;Kishore&quot; ]<br/>roll_no = [ 4, 1, 3, 2 ]<br/> <br/># using zip() to map values<br/>mapped = zip(name, roll_no)<br/> <br/>print(set(mapped))</code></pre> </div>
<h3 id="output">Output</h3>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4725" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-two-lists.png" alt="" width="1260" height="256" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-two-lists.png 1260w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-two-lists-300x61.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-two-lists-1024x208.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-two-lists-768x156.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-two-lists-390x79.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-two-lists-820x167.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-two-lists-1180x240.png 1180w" sizes="(max-width: 1260px) 100vw, 1260px" /></p>
<h3 id="for-example-in-zip-enumerate"><strong>For example, in zip enumerate,</strong></h3>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-python code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-python code-embed-code">names = [&#039;Venkat&#039;, &#039;Akash&#039;, &#039;Kishore&#039;]<br/>ages = [23, 35, 20]<br/> <br/>for i, (name, age) in enumerate(zip(names, ages)):<br/>    print(i, name, age)</code></pre> </div>
<h3 id="output-2">Output</h3>
<p><img decoding="async" class="alignnone size-full wp-image-4726" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-enumerator.png" alt="" width="1241" height="301" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-enumerator.png 1241w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-enumerator-300x73.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-enumerator-1024x248.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-enumerator-768x186.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-enumerator-390x95.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-enumerator-820x199.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-enumerator-1180x286.png 1180w" sizes="(max-width: 1241px) 100vw, 1241px" /></p>
<h3 id="for-example-in-zip-dictionary"><strong> For example, in zip Dictionary,</strong></h3>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-python code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-python code-embed-code">stocks = [&#039;Wikitechy&#039;, &#039;Wipro&#039;, &#039;TCS&#039;]<br/>prices = [2175, 1127, 2750]<br/> <br/>new_dict = {stocks: prices for stocks,<br/>            prices in zip(stocks, prices)}<br/>print(new_dict)</code></pre> </div>
<h3 id="output-3">Output</h3>
<p><img decoding="async" class="alignnone size-full wp-image-4727" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-dictionary.png" alt="" width="1277" height="235" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-dictionary.png 1277w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-dictionary-300x55.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-dictionary-1024x188.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-dictionary-768x141.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-dictionary-390x72.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-dictionary-820x151.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/zip-dictionary-1180x217.png 1180w" sizes="(max-width: 1277px) 100vw, 1277px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/python/what-is-zip-function-in-python/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
