Skip to content

Commit 8b473ac

Browse files
committed
chore: Update dictionary values and remove unnecessary code
1 parent 63e3885 commit 8b473ac

File tree

1 file changed

+117
-0
lines changed

1 file changed

+117
-0
lines changed

dictionary.ipynb

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 19,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"manav = {\n",
10+
" \"name\": \"Manav\",\n",
11+
" \"age\" : 15,\n",
12+
" \"gender\" : \"Male\",\n",
13+
" \"school\" : \"DESC\",\n",
14+
" \"location\" : \"Dubai\",\n",
15+
"}"
16+
]
17+
},
18+
{
19+
"cell_type": "code",
20+
"execution_count": 20,
21+
"metadata": {},
22+
"outputs": [
23+
{
24+
"name": "stdout",
25+
"output_type": "stream",
26+
"text": [
27+
"Manav\n",
28+
"15\n",
29+
"Male\n",
30+
"DESC\n",
31+
"Dubai\n"
32+
]
33+
}
34+
],
35+
"source": [
36+
"print(manav[\"name\"])\n",
37+
"print(manav[\"age\"])\n",
38+
"print(manav[\"gender\"])\n",
39+
"print(manav[\"school\"])\n",
40+
"print(manav[\"location\"])"
41+
]
42+
},
43+
{
44+
"cell_type": "code",
45+
"execution_count": 21,
46+
"metadata": {},
47+
"outputs": [
48+
{
49+
"name": "stdout",
50+
"output_type": "stream",
51+
"text": [
52+
"Manav Codaty\n",
53+
"15\n",
54+
"Male\n",
55+
"Dubai English Speaking College\n",
56+
"Dubai\n"
57+
]
58+
}
59+
],
60+
"source": [
61+
"manav[\"school\"] = \"Dubai English Speaking College\"\n",
62+
"manav[\"name\"] = \"Manav Codaty\"\n",
63+
"\n",
64+
"print(manav[\"name\"])\n",
65+
"print(manav[\"age\"])\n",
66+
"print(manav[\"gender\"])\n",
67+
"print(manav[\"school\"])\n",
68+
"print(manav[\"location\"])\n"
69+
]
70+
},
71+
{
72+
"cell_type": "code",
73+
"execution_count": 22,
74+
"metadata": {},
75+
"outputs": [
76+
{
77+
"name": "stdout",
78+
"output_type": "stream",
79+
"text": [
80+
"Manav Codaty\n",
81+
"15\n",
82+
"Dubai English Speaking College\n",
83+
"Dubai\n"
84+
]
85+
}
86+
],
87+
"source": [
88+
"manav.pop(\"gender\")\n",
89+
"print(manav[\"name\"])\n",
90+
"print(manav[\"age\"])\n",
91+
"print(manav[\"school\"])\n",
92+
"print(manav[\"location\"])"
93+
]
94+
}
95+
],
96+
"metadata": {
97+
"kernelspec": {
98+
"display_name": "Python 3",
99+
"language": "python",
100+
"name": "python3"
101+
},
102+
"language_info": {
103+
"codemirror_mode": {
104+
"name": "ipython",
105+
"version": 3
106+
},
107+
"file_extension": ".py",
108+
"mimetype": "text/x-python",
109+
"name": "python",
110+
"nbconvert_exporter": "python",
111+
"pygments_lexer": "ipython3",
112+
"version": "3.12.2"
113+
}
114+
},
115+
"nbformat": 4,
116+
"nbformat_minor": 2
117+
}

0 commit comments

Comments
 (0)