Skip to content

Commit bd45913

Browse files
committed
Repository Updated.
1 parent ed13fb1 commit bd45913

File tree

49 files changed

+10504
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+10504
-2
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"id": "69ed0b65-cf7d-4fbe-9ac3-a25a2be67a2d",
7+
"metadata": {},
8+
"outputs": [],
9+
"source": []
10+
}
11+
],
12+
"metadata": {
13+
"kernelspec": {
14+
"display_name": "Python 3 (ipykernel)",
15+
"language": "python",
16+
"name": "python3"
17+
},
18+
"language_info": {
19+
"codemirror_mode": {
20+
"name": "ipython",
21+
"version": 3
22+
},
23+
"file_extension": ".py",
24+
"mimetype": "text/x-python",
25+
"name": "python",
26+
"nbconvert_exporter": "python",
27+
"pygments_lexer": "ipython3",
28+
"version": "3.10.10"
29+
}
30+
},
31+
"nbformat": 4,
32+
"nbformat_minor": 5
33+
}
Lines changed: 326 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,326 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"id": "48163fed-c623-46a6-8951-2cac1096297c",
6+
"metadata": {},
7+
"source": [
8+
"# Assignment Operators"
9+
]
10+
},
11+
{
12+
"cell_type": "markdown",
13+
"id": "e4eb6cfc-137f-43ce-a7f4-7e77c8d9fe62",
14+
"metadata": {},
15+
"source": [
16+
"## Simple Assignment (=)"
17+
]
18+
},
19+
{
20+
"cell_type": "code",
21+
"execution_count": 1,
22+
"id": "a502eb10-a75f-48b9-805f-83e9e72ee412",
23+
"metadata": {},
24+
"outputs": [],
25+
"source": [
26+
"a = 5"
27+
]
28+
},
29+
{
30+
"cell_type": "markdown",
31+
"id": "0412174b-b7a3-4802-841d-87012fded49e",
32+
"metadata": {},
33+
"source": [
34+
"## Addition Assignment (+=)"
35+
]
36+
},
37+
{
38+
"cell_type": "code",
39+
"execution_count": 2,
40+
"id": "c09d018a-7580-4b3a-82c8-a4bc57a5d122",
41+
"metadata": {},
42+
"outputs": [],
43+
"source": [
44+
"a += 2"
45+
]
46+
},
47+
{
48+
"cell_type": "code",
49+
"execution_count": 3,
50+
"id": "6014501d-797b-49b9-a4f7-4b9cbb65d6b5",
51+
"metadata": {},
52+
"outputs": [
53+
{
54+
"data": {
55+
"text/plain": [
56+
"7"
57+
]
58+
},
59+
"execution_count": 3,
60+
"metadata": {},
61+
"output_type": "execute_result"
62+
}
63+
],
64+
"source": [
65+
"a"
66+
]
67+
},
68+
{
69+
"cell_type": "markdown",
70+
"id": "f5927607-9246-48cb-a9c4-ee92a81ee7cb",
71+
"metadata": {},
72+
"source": [
73+
"## Subtraction Assignment (-=)"
74+
]
75+
},
76+
{
77+
"cell_type": "code",
78+
"execution_count": 4,
79+
"id": "29ed996c-d8d6-4961-a86c-3e66178c5246",
80+
"metadata": {},
81+
"outputs": [],
82+
"source": [
83+
"a -= 2"
84+
]
85+
},
86+
{
87+
"cell_type": "code",
88+
"execution_count": 5,
89+
"id": "b1975019-64c8-446d-9cf6-62fe1968259e",
90+
"metadata": {},
91+
"outputs": [
92+
{
93+
"data": {
94+
"text/plain": [
95+
"5"
96+
]
97+
},
98+
"execution_count": 5,
99+
"metadata": {},
100+
"output_type": "execute_result"
101+
}
102+
],
103+
"source": [
104+
"a"
105+
]
106+
},
107+
{
108+
"cell_type": "markdown",
109+
"id": "40383fd6-c4b6-4e23-a1e9-45e8f7b7e366",
110+
"metadata": {},
111+
"source": [
112+
"## Multiplication assignment (*=)"
113+
]
114+
},
115+
{
116+
"cell_type": "code",
117+
"execution_count": 6,
118+
"id": "279d6221-8cb3-4991-b785-b70f18c43c68",
119+
"metadata": {},
120+
"outputs": [],
121+
"source": [
122+
"a *= 2"
123+
]
124+
},
125+
{
126+
"cell_type": "code",
127+
"execution_count": 7,
128+
"id": "27a87d42-e8e8-4d3d-9acd-730b71f7816a",
129+
"metadata": {},
130+
"outputs": [
131+
{
132+
"data": {
133+
"text/plain": [
134+
"10"
135+
]
136+
},
137+
"execution_count": 7,
138+
"metadata": {},
139+
"output_type": "execute_result"
140+
}
141+
],
142+
"source": [
143+
"a"
144+
]
145+
},
146+
{
147+
"cell_type": "markdown",
148+
"id": "b859e48a-69e8-40a6-be3a-46355ece1167",
149+
"metadata": {},
150+
"source": [
151+
"## Division assignment (/=)"
152+
]
153+
},
154+
{
155+
"cell_type": "code",
156+
"execution_count": 8,
157+
"id": "95b8bd9a-7e10-4ddc-b8dd-e44b566baaab",
158+
"metadata": {},
159+
"outputs": [],
160+
"source": [
161+
"a /= 2"
162+
]
163+
},
164+
{
165+
"cell_type": "code",
166+
"execution_count": 9,
167+
"id": "34a15412-1647-44c8-aa37-84064b36760a",
168+
"metadata": {},
169+
"outputs": [
170+
{
171+
"data": {
172+
"text/plain": [
173+
"5.0"
174+
]
175+
},
176+
"execution_count": 9,
177+
"metadata": {},
178+
"output_type": "execute_result"
179+
}
180+
],
181+
"source": [
182+
"a"
183+
]
184+
},
185+
{
186+
"cell_type": "markdown",
187+
"id": "13d241c0-031a-4cbb-b2ad-880542954c95",
188+
"metadata": {},
189+
"source": [
190+
"## Modulus assignment (%=)"
191+
]
192+
},
193+
{
194+
"cell_type": "code",
195+
"execution_count": 10,
196+
"id": "9d78fd23-5bc6-4de1-8d5d-684b8f88dbc8",
197+
"metadata": {},
198+
"outputs": [],
199+
"source": [
200+
"a %= 2"
201+
]
202+
},
203+
{
204+
"cell_type": "code",
205+
"execution_count": 11,
206+
"id": "50f60776-c955-421b-975c-1e9e3a34241c",
207+
"metadata": {},
208+
"outputs": [
209+
{
210+
"data": {
211+
"text/plain": [
212+
"1.0"
213+
]
214+
},
215+
"execution_count": 11,
216+
"metadata": {},
217+
"output_type": "execute_result"
218+
}
219+
],
220+
"source": [
221+
"a"
222+
]
223+
},
224+
{
225+
"cell_type": "markdown",
226+
"id": "e4a790d3-8e63-44de-ab45-0cdaa53af2e6",
227+
"metadata": {},
228+
"source": [
229+
"## Exponentiation assignment (**=)"
230+
]
231+
},
232+
{
233+
"cell_type": "code",
234+
"execution_count": 12,
235+
"id": "49364db4-1270-4bba-8567-625d9c702449",
236+
"metadata": {},
237+
"outputs": [],
238+
"source": [
239+
"a **= 2"
240+
]
241+
},
242+
{
243+
"cell_type": "code",
244+
"execution_count": 14,
245+
"id": "2c87da36-ca7a-4b85-9bf0-a9c8b03ef069",
246+
"metadata": {},
247+
"outputs": [
248+
{
249+
"data": {
250+
"text/plain": [
251+
"1.0"
252+
]
253+
},
254+
"execution_count": 14,
255+
"metadata": {},
256+
"output_type": "execute_result"
257+
}
258+
],
259+
"source": [
260+
"a"
261+
]
262+
},
263+
{
264+
"cell_type": "code",
265+
"execution_count": 15,
266+
"id": "ab5da801-a1a9-4bc6-9062-85dc7cde17fa",
267+
"metadata": {},
268+
"outputs": [],
269+
"source": [
270+
"a = 3"
271+
]
272+
},
273+
{
274+
"cell_type": "code",
275+
"execution_count": 16,
276+
"id": "f0487c3f-2326-45c3-8dea-a377bd33f842",
277+
"metadata": {},
278+
"outputs": [],
279+
"source": [
280+
"a **= 3"
281+
]
282+
},
283+
{
284+
"cell_type": "code",
285+
"execution_count": 17,
286+
"id": "5e99fc44-d4e1-4381-a50d-c16bcbe9b86e",
287+
"metadata": {},
288+
"outputs": [
289+
{
290+
"data": {
291+
"text/plain": [
292+
"27"
293+
]
294+
},
295+
"execution_count": 17,
296+
"metadata": {},
297+
"output_type": "execute_result"
298+
}
299+
],
300+
"source": [
301+
"a"
302+
]
303+
}
304+
],
305+
"metadata": {
306+
"kernelspec": {
307+
"display_name": "Python 3 (ipykernel)",
308+
"language": "python",
309+
"name": "python3"
310+
},
311+
"language_info": {
312+
"codemirror_mode": {
313+
"name": "ipython",
314+
"version": 3
315+
},
316+
"file_extension": ".py",
317+
"mimetype": "text/x-python",
318+
"name": "python",
319+
"nbconvert_exporter": "python",
320+
"pygments_lexer": "ipython3",
321+
"version": "3.10.10"
322+
}
323+
},
324+
"nbformat": 4,
325+
"nbformat_minor": 5
326+
}

0 commit comments

Comments
 (0)