<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Dictionary on SourFox</title>
    <link>https://sourfox.khmersite.net/tags/dictionary/</link>
    <description>Recent content in Dictionary on SourFox</description>
    <image>
      <title>SourFox</title>
      <url>https://sourfox.khmersite.net/papermod-cover.png</url>
      <link>https://sourfox.khmersite.net/papermod-cover.png</link>
    </image>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sun, 25 Feb 2024 18:00:14 +1100</lastBuildDate>
    <atom:link href="https://sourfox.khmersite.net/tags/dictionary/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Make a Frequency Dictionary From the Elements Of a List </title>
      <link>https://sourfox.khmersite.net/p/2024/2/assignment-8/</link>
      <pubDate>Sun, 25 Feb 2024 18:00:14 +1100</pubDate>
      <guid>https://sourfox.khmersite.net/p/2024/2/assignment-8/</guid>
      <description>&lt;p&gt;Halo! Today I have to make a python program that meets these conditions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Write a Python program that creates and print a dictionary that maps each element in a list to its corresponding frequency (how many times it occurs in the list).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The test should be case-sensitive. Therefore, “A” should not be considered the same element as “a”.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I think for today, I&amp;rsquo;m just going to make it short. Yea&amp;hellip;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Bonus assignment: Challenge Add a Key-Value Pair Only if the Key is Not in the Dictionary </title>
      <link>https://sourfox.khmersite.net/p/2023/11/dictionary/</link>
      <pubDate>Sat, 18 Nov 2023 18:51:34 +1100</pubDate>
      <guid>https://sourfox.khmersite.net/p/2023/11/dictionary/</guid>
      <description>&lt;p&gt;Today I was very bored so I checked my bonus assignments and I got this.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Write a Python program that adds a new key-value pair to a dictionary only if the key doesn&amp;rsquo;t exist already.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If the key-value pair exists in the dictionary, do not update the existing value. The dictionary should not be modified in this case.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Store the new key in the new_key variable and the new value in the new_value variable.
Print the final value of the dictionary.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
