<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[PythonPips - Medium]]></title>
        <description><![CDATA[Byte size snippet every day! - Medium]]></description>
        <link>https://medium.com/pythonpips?source=rss----9dfc0a4468c9---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>PythonPips - Medium</title>
            <link>https://medium.com/pythonpips?source=rss----9dfc0a4468c9---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 16:30:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/pythonpips" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Reverse a List in Python]]></title>
            <link>https://medium.com/pythonpips/how-to-reverse-a-list-in-python-25ca51fd7be?source=rss----9dfc0a4468c9---4</link>
            <guid isPermaLink="false">https://medium.com/p/25ca51fd7be</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[lists]]></category>
            <dc:creator><![CDATA[Vaibhav Mule]]></dc:creator>
            <pubDate>Tue, 15 Jan 2019 04:13:28 GMT</pubDate>
            <atom:updated>2019-01-15T04:13:28.870Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nPNMuSAxnXqRe6cT8_kEbg.png" /><figcaption>3 Ways to Reverse a list in Python</figcaption></figure><p>Reverse an array in Python using slicing, reversed generator and reverse method to replace a list in-place</p><pre>numbers = [1, 2, 3, 4, 5]</pre><pre># Slice the list<br>numbers[::-1]<br>&gt;&gt;&gt; [5, 4, 3, 2, 1]</pre><pre># reversed generator<br>list(reversed(numbers))<br>&gt;&gt;&gt; [5, 4, 3, 2, 1]</pre><pre># reverse method to reverse the list in-place<br>numbers.reverse()<br>print(numbers)<br>&gt;&gt;&gt; [5, 4, 3, 2, 1]</pre><p><a href="https://twitter.com/PythonPips/status/1062961589358194688">Like this on Twitter</a> | <a href="https://www.instagram.com/p/BqMM_8YhgR7/">Like this on Instagram</a> | <a href="https://www.facebook.com/pythonpips/posts/304174477100281">Like this on Facebook</a></p><p>Subscribe to our newsletter</p><p><em>Originally published at </em><a href="https://pythonpips.com/snippets/reverse-list"><em>pythonpips.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25ca51fd7be" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pythonpips/how-to-reverse-a-list-in-python-25ca51fd7be">How to Reverse a List in Python</a> was originally published in <a href="https://medium.com/pythonpips">PythonPips</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Read CSV File in Python]]></title>
            <link>https://medium.com/pythonpips/how-to-read-csv-file-in-python-927245f88b7d?source=rss----9dfc0a4468c9---4</link>
            <guid isPermaLink="false">https://medium.com/p/927245f88b7d</guid>
            <category><![CDATA[csv]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python3]]></category>
            <dc:creator><![CDATA[Vaibhav Mule]]></dc:creator>
            <pubDate>Sun, 13 Jan 2019 15:08:55 GMT</pubDate>
            <atom:updated>2019-01-13T15:08:54.099Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uwza6npA5XdSs0MGdCPdXA.png" /></figure><p>Read CSV file using Python built-in CSV library</p><p><strong>contacts.csv</strong></p><pre>name, phone_number<br>Vaibhav, +111111111111<br>John, +222222222</pre><h3>Read CSV File</h3><pre>import csv </pre><pre>with open(&#39;contacts.csv&#39;) as contact_file:<br>    csv_reader = csv.reader(contact_file, delimiter=&#39;,&#39;)<br>    csv_reader.__next__() # skip headers of csv file for row in<br>    csv_reader: print(f&#39;Name: {row[0]} Number: {row[1]}&#39;)</pre><p><a href="https://twitter.com/PythonPips/status/1062951392896180224">Like this on Twitter</a> | <a href="https://www.instagram.com/p/BqJxBOCB5ly/">Like this on Instagram</a> | <a href="https://twitter.com/PythonPips/status/1062609252479459330">Like this on Facebook</a></p><p><a href="https://pythonpips.com/">Subscribe to our newsletter</a></p><p><em>Originally published at </em><a href="https://pythonpips.com/snippets/read-csv-file"><em>pythonpips.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=927245f88b7d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pythonpips/how-to-read-csv-file-in-python-927245f88b7d">How to Read CSV File in Python</a> was originally published in <a href="https://medium.com/pythonpips">PythonPips</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>