summaryrefslogtreecommitdiff
path: root/mit/dict.py
diff options
context:
space:
mode:
Diffstat (limited to 'mit/dict.py')
-rw-r--r--mit/dict.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/mit/dict.py b/mit/dict.py
new file mode 100644
index 0000000..e90c2af
--- /dev/null
+++ b/mit/dict.py
@@ -0,0 +1,11 @@
+#!/usr/bin/python3
+
+#Dictionary examples:
+
+my_dict = {'a':1, 'b':2, 'c':3}
+
+my_dict['d'] = 9 #Add new member
+
+def update(new_dict, item):
+ del new_dict[item]
+