<?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[Stories by Anes Hamidi on Medium]]></title>
        <description><![CDATA[Stories by Anes Hamidi on Medium]]></description>
        <link>https://medium.com/@AnesHamidi?source=rss-26601c5ee726------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*q_B9608KvF9w0V87fkiczQ.png</url>
            <title>Stories by Anes Hamidi on Medium</title>
            <link>https://medium.com/@AnesHamidi?source=rss-26601c5ee726------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 13:55:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@AnesHamidi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Magic of Data Structures and Algorithms in Python]]></title>
            <link>https://medium.com/@AnesHamidi/the-magic-of-data-structures-and-algorithms-in-python-a85eaee7e617?source=rss-26601c5ee726------2</link>
            <guid isPermaLink="false">https://medium.com/p/a85eaee7e617</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[beginner-coding]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[algorithms]]></category>
            <dc:creator><![CDATA[Anes Hamidi]]></dc:creator>
            <pubDate>Sat, 26 Nov 2022 16:23:33 GMT</pubDate>
            <atom:updated>2022-11-26T16:29:55.837Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZJgaXA6-9A4fDn7r" /></figure><h3>Introduction</h3><p>Using data structures and algorithms in Python can be tricky at times, especially when you’re not familiar with the language or its idioms and when you’re new to the field of software development in general. Fortunately, there are lots of great resources that will help, but the best resource of all is practice! That’s why I want to share this series of posts covering some of the most useful Python data structures and algorithms that I think all Python developers should know how to use and how to implement themselves. Without further ado, let’s get started!</p><h3><strong>What are Data Structures?</strong></h3><p>Data structures are the way you store and organize data in memory. Each data structure has its own unique characteristics, but they all have one thing in common: they make it easier to access specific pieces of data, making your program run faster and more efficiently. In this guide, we’ll walk through some of the most common types of data structures in Python, so you can learn how to work with them effectively .</p><pre>                                 #Text Type<br><br>a=str:(&quot;better late than never&quot;)<br><br>                                #Numeric type<br><br>b=int:999<br>c=float:15.99<br>d=complex(10,2) <br><br>                                #Sequence Type<br><br>userID = list:[1,2,3,4,5,6,] #LIST<br>user1 = tuple:(&#39;Adidas&#39;,&#39;Nike&#39;,&#39;Lacoste&#39;) #TUPLE<br>length = range(6)<br><br>                                  #Set Type<br><br>uniqueCode = set:{215,546,856,354,795} #SETS<br>clean = (&#39;aabbdddddddddjjjjjjjjjjeeeeeeeeellllllllsssssssmmm&#39;) #FROZENSET<br>fSet = frozenset(clean)<br><br>                                 #Mapping Type<br><br>user3 = dict:{1:&#39;red&#39;,2:&#39;white&#39;,3:&#39;green&#39;} #DICTIONARIES<br>#Boolean Type = 0 or 1 || True or False<br>Man = True<br>Women = False<br><br>                                   #BinaryType<br><br>byte_array = bytearray(&#39;XYZ&#39;, &#39;utf-8&#39;) #BYTEARRAY<br>view = memoryview(byte_array) #MEMORYVIEW<br>byte = bytes(mem_view) #BYTES<br><br>                     #None Type == Dynamic Variable is a none type <br> <br>                                  &#39;&#39;&#39;<br><br>               We will explain in separate post about each type<br><br>                                  &#39;&#39;&#39;</pre><h3><strong>What are Algorithms?</strong></h3><p>Algorithms are sets of instructions for completing a task. They are often used to describe the process for solving a given problem. For example, an algorithm may be written to solve a puzzle. An algorithm can also be used to describe the steps needed to complete any number of tasks. <br>An example of this is an algorithm that instructs you on how to bake cookies. This might include information like the type of pan you should use, what ingredients you will need, and how long each step should take.</p><h3><strong>Conclusion</strong></h3><p>No matter what the programming language, there is a data structure that can be used to store any kind of data. In Python, the most common data structures are lists, dictionaries, sets, tuples and strings. Lists are useful for items that need to be ordered or indexed by location. Dictionaries are good for storing pairs such as key-value pairs or name-price pairs. Sets can only store one instance of each item while tuples can only hold two items at a time.</p><h3>Start practicing the concepts you learn and understand them well</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a85eaee7e617" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>