<?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 John Kevin Padro on Medium]]></title>
        <description><![CDATA[Stories by John Kevin Padro on Medium]]></description>
        <link>https://medium.com/@johnkevin.padro24?source=rss-7a13a0403700------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*i_tAZcVx4QpATS_e</url>
            <title>Stories by John Kevin Padro on Medium</title>
            <link>https://medium.com/@johnkevin.padro24?source=rss-7a13a0403700------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 21:10:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@johnkevin.padro24/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[Applications of Function in Dictionary for Python Programming]]></title>
            <link>https://medium.com/@johnkevin.padro24/applications-of-functions-in-dictionary-for-python-programming-836c2c52d0f3?source=rss-7a13a0403700------2</link>
            <guid isPermaLink="false">https://medium.com/p/836c2c52d0f3</guid>
            <category><![CDATA[dictionary]]></category>
            <category><![CDATA[general-math]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[function]]></category>
            <dc:creator><![CDATA[John Kevin Padro]]></dc:creator>
            <pubDate>Wed, 16 Oct 2024 17:30:59 GMT</pubDate>
            <atom:updated>2024-10-16T17:35:03.256Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*xznplPHNLWYw0nSwCNIgLw.jpeg" /><figcaption>Image by <a href="https://www.trytoprogram.com/python-programming/python-dictionary/">Trytoprogram</a></figcaption></figure><p>One of the applications in function is the used of dictionary in Python Programming. But before that, let’s recall what is function all about.</p><p><strong>Recall (Function):</strong></p><p>A function is a relation in which all elements of the set of input values is corresponding exactly one element in the set of output values.</p><p>For instance, consider a relation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*gFedli_9FfxWENqfE39u2Q.png" /></figure><p>then <em>R </em>is a function, since all input values are corresponding at exactly one output values. Note that,</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fmathembed.online%2Fembed%2FiHgIFXfC3hzOQ8TT5pvu&amp;dntp=1&amp;display_name=Math+Embed&amp;url=https%3A%2F%2Fmathembed.online%2Fembed%2FiHgIFXfC3hzOQ8TT5pvu&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=mathembed" width="420" height="105" frameborder="0" scrolling="no"><a href="https://medium.com/media/3cc265a5944bbe00eacb104958c3ff81/href">https://medium.com/media/3cc265a5944bbe00eacb104958c3ff81/href</a></iframe><p>Now let us know what is <strong>dictionary</strong> in Python programming.</p><p><strong>Definition (Dictionary):</strong></p><blockquote>A dictionary is a collection items that is similar to lists, and tuples. However, dictionary is quite different to lists and tuples because for each item in dictionary consisting a key-value pair.</blockquote><p>Notice that the function in Mathematics and dictionary in Python programming are quite analogous to each other. Since, the elements of the function are ordered pairs which is analogous to key-value pairs in dictionary. Also, input is analogous to key and output is analogous to value.</p><p>For example, we have a dictionary of a country corresponding to its capital.</p><pre>country_capitals = {&quot;Japan&quot;:&quot;Tokyo&quot;, &quot;Philippines&quot;:&quot;Manila&quot;, <br>                     &quot;South Korea&quot;:&quot;Seoul&quot;}</pre><p>Then we have,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*mf04xZ0jAF_IqRJlcLFy3A.png" /></figure><p>Now, we use the example of function R, so that we can see the connection to the dictionary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*ZJm2yDw0aE9WhnGyUuubug.png" /></figure><p>Thank you for reading this article. Hopefully, you have enjoy and gain some insights and learnings.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=836c2c52d0f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>