Skip to content

Commit 8076d2b

Browse files
committed
updated
1 parent afa068e commit 8076d2b

11 files changed

+14536
-7
lines changed

07-08-23_Naresh_kumar'.ipynb

+907
Large diffs are not rendered by default.

11-08-23_Naresh_kumar.ipynb

+1,925
Large diffs are not rendered by default.

13-07-23_Naresh_kumar.ipynb

+2,375
Large diffs are not rendered by default.

14-07-23_Naresh_kumar.ipynb

+1,915
Large diffs are not rendered by default.

20-07-23_Naresh_kumar.ipynb

+4,221
Large diffs are not rendered by default.

Interview_Question.ipynb

+98-7
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
},
101101
{
102102
"cell_type": "markdown",
103-
"id": "b79d3912",
103+
"id": "2cbd493c",
104104
"metadata": {},
105105
"source": [
106106
"# Swap Number without Temp Variable"
@@ -109,7 +109,7 @@
109109
{
110110
"cell_type": "code",
111111
"execution_count": 1,
112-
"id": "c7dfe2d0",
112+
"id": "327000c9",
113113
"metadata": {},
114114
"outputs": [
115115
{
@@ -132,7 +132,7 @@
132132
{
133133
"cell_type": "code",
134134
"execution_count": 3,
135-
"id": "fb3be509",
135+
"id": "ecf27ab1",
136136
"metadata": {},
137137
"outputs": [],
138138
"source": [
@@ -147,7 +147,7 @@
147147
{
148148
"cell_type": "code",
149149
"execution_count": 4,
150-
"id": "0ef6064b",
150+
"id": "1818448c",
151151
"metadata": {},
152152
"outputs": [
153153
{
@@ -168,7 +168,7 @@
168168
{
169169
"cell_type": "code",
170170
"execution_count": 5,
171-
"id": "6f116cbd",
171+
"id": "8c3619b9",
172172
"metadata": {},
173173
"outputs": [],
174174
"source": [
@@ -179,7 +179,7 @@
179179
{
180180
"cell_type": "code",
181181
"execution_count": 7,
182-
"id": "54c50f4b",
182+
"id": "4746f941",
183183
"metadata": {},
184184
"outputs": [
185185
{
@@ -197,10 +197,101 @@
197197
"detail(name='naresh',subject='Python')"
198198
]
199199
},
200+
{
201+
"cell_type": "code",
202+
"execution_count": 8,
203+
"id": "34f17f6a",
204+
"metadata": {},
205+
"outputs": [],
206+
"source": [
207+
"d={'name':'Naresh','Subject':'Python'}"
208+
]
209+
},
210+
{
211+
"cell_type": "code",
212+
"execution_count": 9,
213+
"id": "2010db2a",
214+
"metadata": {},
215+
"outputs": [
216+
{
217+
"data": {
218+
"text/plain": [
219+
"{'name': 'Naresh', 'Subject': 'Python'}"
220+
]
221+
},
222+
"execution_count": 9,
223+
"metadata": {},
224+
"output_type": "execute_result"
225+
}
226+
],
227+
"source": [
228+
"d"
229+
]
230+
},
231+
{
232+
"cell_type": "code",
233+
"execution_count": 11,
234+
"id": "c45ffaaf",
235+
"metadata": {},
236+
"outputs": [],
237+
"source": [
238+
"f=sorted(d.keys())\n",
239+
"d2={}"
240+
]
241+
},
242+
{
243+
"cell_type": "code",
244+
"execution_count": 14,
245+
"id": "545c76fd",
246+
"metadata": {},
247+
"outputs": [
248+
{
249+
"name": "stdout",
250+
"output_type": "stream",
251+
"text": [
252+
"{1: 'Naresh'}\n",
253+
"{1: 'Naresh', 2: 'rahul'}\n",
254+
"{1: 'Naresh', 2: 'rahul', 4: 'Suresh'}\n"
255+
]
256+
}
257+
],
258+
"source": [
259+
"d={1:'Naresh',4:'Suresh',2:'rahul'}\n",
260+
"f=sorted(d.keys())\n",
261+
"d2={}\n",
262+
"for i in f:\n",
263+
" d2[i]=d[i]\n",
264+
" print(d2)"
265+
]
266+
},
267+
{
268+
"cell_type": "code",
269+
"execution_count": 15,
270+
"id": "a4eefbcb",
271+
"metadata": {},
272+
"outputs": [
273+
{
274+
"name": "stdout",
275+
"output_type": "stream",
276+
"text": [
277+
"{'Subject': 'Python'}\n",
278+
"{'Subject': 'Python', 'name': 'Naresh'}\n"
279+
]
280+
}
281+
],
282+
"source": [
283+
"d={'name':'Naresh','Subject':'Python'}\n",
284+
"f=sorted(d.keys())\n",
285+
"d2={}\n",
286+
"for i in f:\n",
287+
" d2[i]=d[i]\n",
288+
" print(d2)"
289+
]
290+
},
200291
{
201292
"cell_type": "code",
202293
"execution_count": null,
203-
"id": "f14b7229",
294+
"id": "52fe8041",
204295
"metadata": {},
205296
"outputs": [],
206297
"source": []

0 commit comments

Comments
 (0)