<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.brandon-rodriguez.com/index.php?action=history&amp;feed=atom&amp;title=Programming%2FDictionaries</id>
	<title>Programming/Dictionaries - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.brandon-rodriguez.com/index.php?action=history&amp;feed=atom&amp;title=Programming%2FDictionaries"/>
	<link rel="alternate" type="text/html" href="https://wiki.brandon-rodriguez.com/index.php?title=Programming/Dictionaries&amp;action=history"/>
	<updated>2026-05-07T12:57:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.brandon-rodriguez.com/index.php?title=Programming/Dictionaries&amp;diff=430&amp;oldid=prev</id>
		<title>Brodriguez: Brodriguez moved page Dictionaries to Programming/Dictionaries</title>
		<link rel="alternate" type="text/html" href="https://wiki.brandon-rodriguez.com/index.php?title=Programming/Dictionaries&amp;diff=430&amp;oldid=prev"/>
		<updated>2020-10-25T17:25:58Z</updated>

		<summary type="html">&lt;p&gt;Brodriguez moved page &lt;a href=&quot;/Dictionaries&quot; class=&quot;mw-redirect&quot; title=&quot;Dictionaries&quot;&gt;Dictionaries&lt;/a&gt; to &lt;a href=&quot;/Programming/Dictionaries&quot; title=&quot;Programming/Dictionaries&quot;&gt;Programming/Dictionaries&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:25, 25 October 2020&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key dev_wiki:diff::1.12:old-338:rev-430 --&gt;
&lt;/table&gt;</summary>
		<author><name>Brodriguez</name></author>
	</entry>
	<entry>
		<id>https://wiki.brandon-rodriguez.com/index.php?title=Programming/Dictionaries&amp;diff=338&amp;oldid=prev</id>
		<title>Brodriguez: Formatting</title>
		<link rel="alternate" type="text/html" href="https://wiki.brandon-rodriguez.com/index.php?title=Programming/Dictionaries&amp;diff=338&amp;oldid=prev"/>
		<updated>2020-06-08T05:04:03Z</updated>

		<summary type="html">&lt;p&gt;Formatting&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:04, 8 June 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l14&quot;&gt;Line 14:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Initialization ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Initialization ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Generally speaking, dictionaries can be initialized as empty:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Generally speaking, dictionaries can be initialized as empty:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  my_dict = {}&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  my_dict = {}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Or with initial values:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Or with initial values:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key dev_wiki:diff::1.12:old-220:rev-338 --&gt;
&lt;/table&gt;</summary>
		<author><name>Brodriguez</name></author>
	</entry>
	<entry>
		<id>https://wiki.brandon-rodriguez.com/index.php?title=Programming/Dictionaries&amp;diff=220&amp;oldid=prev</id>
		<title>Brodriguez: Create page</title>
		<link rel="alternate" type="text/html" href="https://wiki.brandon-rodriguez.com/index.php?title=Programming/Dictionaries&amp;diff=220&amp;oldid=prev"/>
		<updated>2020-05-12T00:07:23Z</updated>

		<summary type="html">&lt;p&gt;Create page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Similarly to [[Arrays]], dictionaries are data structures meant to store groups of items.&lt;br /&gt;
&lt;br /&gt;
Conceptually, the biggest difference is that dictionary values are accessed via a &amp;quot;key&amp;quot;, rather than an index number.&amp;lt;br&amp;gt;&lt;br /&gt;
This key can be anything the programmer desires, such as a string, an integer, etc. The only stipulation is that each unique key refers to a single value. Each one of these entries is generally referred to as a &amp;quot;Key-Value&amp;quot; pair.&lt;br /&gt;
&lt;br /&gt;
Furthermore, unlike arrays, most languages automatically handle dictionary size for you in the background.&lt;br /&gt;
&lt;br /&gt;
Generally speaking, the syntax for dictionaries in most languages uses { } (braces/curly brackets).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Core Operations ==&lt;br /&gt;
Note that syntax for these will vary wildly depending on the language. See documentation of your specific language for syntax details.&lt;br /&gt;
&lt;br /&gt;
=== Initialization ===&lt;br /&gt;
Generally speaking, dictionaries can be initialized as empty:&lt;br /&gt;
 my_dict = {}.&lt;br /&gt;
&lt;br /&gt;
Or with initial values:&lt;br /&gt;
 my_dict = {&lt;br /&gt;
     &amp;quot;Ice Cream&amp;quot; = 50,&lt;br /&gt;
     &amp;quot;Burgers&amp;quot; = 56,&lt;br /&gt;
     &amp;quot;Pizza&amp;quot; = 102,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Accessing a Key-Value Pair ===&lt;br /&gt;
For most languages, access a Key-Value pair by putting the key in [ ] (square brackets). Ex:&lt;br /&gt;
 pizza_count = my_dict[&amp;quot;Pizza&amp;quot;];&lt;br /&gt;
&lt;br /&gt;
=== Adding a New Key-Value Pair ===&lt;br /&gt;
For most languages, a new Key-Value pair is established by combining an assignment statement and the above &amp;quot;access&amp;quot; syntax. Ex:&lt;br /&gt;
 my_dict[&amp;quot;Pizza&amp;quot;] = 103;&lt;br /&gt;
&lt;br /&gt;
=== Removing a Key-Value Pair ===&lt;br /&gt;
Syntax for this tends to vary quite a bit. But two examples of removing the &amp;quot;Pizza&amp;quot; value from the dictionary are:&lt;br /&gt;
 my_dict.Remove(&amp;quot;Pizza&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
 del my_dict[&amp;quot;Pizza&amp;quot;];&lt;/div&gt;</summary>
		<author><name>Brodriguez</name></author>
	</entry>
</feed>