<?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 Ojeniran Olanrewaju on Medium]]></title>
        <description><![CDATA[Stories by Ojeniran Olanrewaju on Medium]]></description>
        <link>https://medium.com/@olanrewajuibrahim007?source=rss-8d88d2a353ee------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-C9B2rF7DOJHbL_Y</url>
            <title>Stories by Ojeniran Olanrewaju on Medium</title>
            <link>https://medium.com/@olanrewajuibrahim007?source=rss-8d88d2a353ee------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:49:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@olanrewajuibrahim007/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[List, Set and Dictionary in python]]></title>
            <link>https://medium.com/@olanrewajuibrahim007/list-2cc917f5da1c?source=rss-8d88d2a353ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cc917f5da1c</guid>
            <dc:creator><![CDATA[Ojeniran Olanrewaju]]></dc:creator>
            <pubDate>Mon, 08 Nov 2021 12:03:05 GMT</pubDate>
            <atom:updated>2021-11-08T12:09:08.760Z</atom:updated>
            <content:encoded><![CDATA[<p>List, Set and Dictionary in python</p><p>LIST</p><p>Python lists are one of the most versatile data types that allow us to work with multiple elements at once.</p><p>A list can store a sequence of objects in a certain order such that you can index into the list, or iterate over the list. Moreover, List is a mutable type meaning that lists can be modified after they have been created.</p><p>Example: color = [‘yellow’, ‘blue’, ‘green’]</p><p>SET</p><p>A set is an unordered collection of items. Every set element is unique (no duplicates) and must be immutable (cannot be changed).</p><p>However, a set itself is mutable. We can add or remove items from it.</p><p>A set is created by placing all the items (elements) inside curly braces {}, separated by comma, or by using the built-in set function.</p><p>It can have any number of items and they may be of different types (integer, float, tuple, string etc.). But a set cannot have mutable elements like lists, sets or dictionaries as its elements.</p><p>Example: color = {‘red’, ‘green’, ‘orange’}</p><p>DICTIONARY</p><p>Python dictionary is an unordered collection of items. Each item of a dictionary has a key/value pair. Dictionaries are optimized to retrieve values when the key is known.</p><p>To create a dictionary is as simple as placing items inside curly braces separated by commas.</p><p>An item has a key and a corresponding Value that is expressed as a pair (key: value).</p><p>While the values can be of any data type and can repeat, keys must be of immutable type (string, number or tuple with immutable elements) and must be unique.</p><p>Example: dict = {</p><p>. ‘brand’: ‘Toyota’</p><p>. ‘model’: ‘corolla’</p><p>. ‘year’: ‘2005’</p><p>. }</p><p>In the instance given above, the keys are ‘brand’, ‘model’ and ‘year’ while the values are ‘Toyota’, ‘corolla’, ‘2005’.</p><p>Keys in python are always unique within a dictionary while values may not be. The values of a dictionary can be of any type, but the keys must be of an immutable data type such as strings and numbers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cc917f5da1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>