Skip to content

Commit e03bda4

Browse files
committed
renamed file
1 parent 47ed0d6 commit e03bda4

File tree

6 files changed

+109
-114
lines changed

6 files changed

+109
-114
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
},
3232
"source": [
3333
"## What is Python?\n",
34-
"Python is a general-purpose programming language, which is another way to say that it can be <font color=\"red\">used for nearly everything</font>. \n",
35-
"Python is relatively simple, so it's easy to learn since it requires a unique syntax that focuses on readability."
34+
"- Python is a general-purpose programming language, which is another way to say that it can be <font color=\"red\">used for nearly everything</font>. \n",
35+
"- Python is relatively simple, so it's easy to learn since it requires a unique syntax that focuses on readability."
3636
]
3737
},
3838
{

Basics.ipynb

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
},
208208
{
209209
"cell_type": "code",
210-
"execution_count": 5,
210+
"execution_count": 3,
211211
"metadata": {
212212
"cell_style": "split",
213213
"scrolled": true,
@@ -278,7 +278,7 @@
278278
},
279279
{
280280
"cell_type": "code",
281-
"execution_count": 8,
281+
"execution_count": 2,
282282
"metadata": {
283283
"slideshow": {
284284
"slide_type": "subslide"
@@ -356,15 +356,15 @@
356356
},
357357
{
358358
"cell_type": "code",
359-
"execution_count": 70,
359+
"execution_count": 3,
360360
"metadata": {
361361
"slideshow": {
362362
"slide_type": "subslide"
363363
}
364364
},
365365
"outputs": [],
366366
"source": [
367-
"name = 'Diptangsu Goswami'\n",
367+
"name = 'Koustav Chanda'\n",
368368
"age = 21\n",
369369
"height = 182.88 # cm"
370370
]
@@ -384,7 +384,7 @@
384384
},
385385
{
386386
"cell_type": "code",
387-
"execution_count": 19,
387+
"execution_count": 4,
388388
"metadata": {
389389
"scrolled": true,
390390
"slideshow": {
@@ -396,11 +396,11 @@
396396
"name": "stdout",
397397
"output_type": "stream",
398398
"text": [
399-
"Diptangsu Goswami\n",
399+
"Koustav Chanda\n",
400400
"21\n",
401401
"182.88\n",
402402
"\n",
403-
"Diptangsu Goswami is 21 years old and is 182.88 centimeters tall\n"
403+
"Koustav Chanda is 21 years old and is 182.88 centimeters tall\n"
404404
]
405405
}
406406
],
@@ -458,7 +458,7 @@
458458
},
459459
{
460460
"cell_type": "code",
461-
"execution_count": 60,
461+
"execution_count": 6,
462462
"metadata": {
463463
"slideshow": {
464464
"slide_type": "subslide"
@@ -472,7 +472,7 @@
472472
},
473473
{
474474
"cell_type": "code",
475-
"execution_count": 62,
475+
"execution_count": 7,
476476
"metadata": {
477477
"scrolled": true,
478478
"slideshow": {
@@ -907,7 +907,7 @@
907907
},
908908
{
909909
"cell_type": "code",
910-
"execution_count": 6,
910+
"execution_count": 12,
911911
"metadata": {
912912
"slideshow": {
913913
"slide_type": "subslide"
@@ -918,7 +918,7 @@
918918
"name": "stdout",
919919
"output_type": "stream",
920920
"text": [
921-
"Enter a value : here is a value\n"
921+
"Enter a value : this is a value\n"
922922
]
923923
}
924924
],
@@ -928,7 +928,7 @@
928928
},
929929
{
930930
"cell_type": "code",
931-
"execution_count": 7,
931+
"execution_count": 13,
932932
"metadata": {
933933
"slideshow": {
934934
"slide_type": "fragment"
@@ -938,10 +938,10 @@
938938
{
939939
"data": {
940940
"text/plain": [
941-
"'here is a value'"
941+
"'this is a value'"
942942
]
943943
},
944-
"execution_count": 7,
944+
"execution_count": 13,
945945
"metadata": {},
946946
"output_type": "execute_result"
947947
}
@@ -952,7 +952,7 @@
952952
},
953953
{
954954
"cell_type": "code",
955-
"execution_count": 4,
955+
"execution_count": 16,
956956
"metadata": {
957957
"slideshow": {
958958
"slide_type": "subslide"
@@ -964,18 +964,18 @@
964964
"output_type": "stream",
965965
"text": [
966966
"Enter a number : 123\n",
967-
"Enter another number : 239\n"
967+
"Enter another number : 7\n"
968968
]
969969
}
970970
],
971971
"source": [
972-
"a = input('Enter a number : ')\n",
973-
"b = input('Enter another number : ')"
972+
"a = int(input('Enter a number : '))\n",
973+
"b = int(input('Enter another number : '))"
974974
]
975975
},
976976
{
977977
"cell_type": "code",
978-
"execution_count": 9,
978+
"execution_count": 17,
979979
"metadata": {
980980
"scrolled": true,
981981
"slideshow": {
@@ -986,10 +986,10 @@
986986
{
987987
"data": {
988988
"text/plain": [
989-
"'123239'"
989+
"130"
990990
]
991991
},
992-
"execution_count": 9,
992+
"execution_count": 17,
993993
"metadata": {},
994994
"output_type": "execute_result"
995995
}
@@ -1058,7 +1058,7 @@
10581058
},
10591059
{
10601060
"cell_type": "code",
1061-
"execution_count": 13,
1061+
"execution_count": 20,
10621062
"metadata": {
10631063
"slideshow": {
10641064
"slide_type": "fragment"

Conditional Statements.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,20 @@
5555
},
5656
{
5757
"cell_type": "code",
58-
"execution_count": 3,
58+
"execution_count": 10,
5959
"metadata": {
6060
"slideshow": {
6161
"slide_type": "subslide"
6262
}
6363
},
6464
"outputs": [],
6565
"source": [
66-
"m, n = 20, 123"
66+
"m, n = 20, 20"
6767
]
6868
},
6969
{
7070
"cell_type": "code",
71-
"execution_count": 4,
71+
"execution_count": 8,
7272
"metadata": {
7373
"slideshow": {
7474
"slide_type": "fragment"
@@ -92,7 +92,7 @@
9292
},
9393
{
9494
"cell_type": "code",
95-
"execution_count": 6,
95+
"execution_count": 11,
9696
"metadata": {
9797
"slideshow": {
9898
"slide_type": "fragment"
@@ -103,7 +103,7 @@
103103
"name": "stdout",
104104
"output_type": "stream",
105105
"text": [
106-
"n is greater\n"
106+
"both are equal\n"
107107
]
108108
}
109109
],
@@ -140,7 +140,7 @@
140140
},
141141
{
142142
"cell_type": "code",
143-
"execution_count": 14,
143+
"execution_count": 16,
144144
"metadata": {
145145
"slideshow": {
146146
"slide_type": "subslide"

Loops.ipynb

Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
},
129129
{
130130
"cell_type": "code",
131-
"execution_count": 1,
131+
"execution_count": 2,
132132
"metadata": {
133133
"slideshow": {
134134
"slide_type": "subslide"
@@ -175,17 +175,12 @@
175175
"11\n",
176176
"12\n",
177177
"13\n",
178-
"14\n",
179-
"15\n",
180-
"16\n",
181-
"17\n",
182-
"18\n",
183-
"19\n"
178+
"14\n"
184179
]
185180
}
186181
],
187182
"source": [
188-
"for i in range(10, 20):\n",
183+
"for i in range(10, 15):\n",
189184
" print(i)"
190185
]
191186
},
@@ -202,18 +197,18 @@
202197
"name": "stdout",
203198
"output_type": "stream",
204199
"text": [
205-
"10\n",
206-
"13\n",
207-
"16\n",
208-
"19\n",
209-
"22\n",
210-
"25\n",
211-
"28\n"
200+
"50\n",
201+
"47\n",
202+
"44\n",
203+
"41\n",
204+
"38\n",
205+
"35\n",
206+
"32\n"
212207
]
213208
}
214209
],
215210
"source": [
216-
"for i in range(10, 30, 3):\n",
211+
"for i in range(50, 30, -3):\n",
217212
" print(i)"
218213
]
219214
},
@@ -346,7 +341,7 @@
346341
},
347342
{
348343
"cell_type": "code",
349-
"execution_count": 15,
344+
"execution_count": 9,
350345
"metadata": {
351346
"slideshow": {
352347
"slide_type": "subslide"
@@ -357,22 +352,22 @@
357352
"name": "stdout",
358353
"output_type": "stream",
359354
"text": [
360-
"4 x 1 = 4\n",
361-
"4 x 2 = 8\n",
362-
"4 x 3 = 12\n",
363-
"4 x 4 = 16\n",
364-
"4 x 5 = 20\n",
365-
"4 x 6 = 24\n",
366-
"4 x 7 = 28\n",
367-
"4 x 8 = 32\n",
368-
"4 x 9 = 36\n",
369-
"4 x 10 = 40\n"
355+
"6 x 1 = 6\n",
356+
"6 x 2 = 12\n",
357+
"6 x 3 = 18\n",
358+
"6 x 4 = 24\n",
359+
"6 x 5 = 30\n",
360+
"6 x 6 = 36\n",
361+
"6 x 7 = 42\n",
362+
"6 x 8 = 48\n",
363+
"6 x 9 = 54\n",
364+
"6 x 10 = 60\n"
370365
]
371366
}
372367
],
373368
"source": [
374369
"# printing the table of n\n",
375-
"n = 4\n",
370+
"n = 6\n",
376371
"i = 1\n",
377372
"while i <= 10:\n",
378373
" print(n, 'x', i, '=', (n * i))\n",
@@ -403,7 +398,6 @@
403398
}
404399
],
405400
"metadata": {
406-
"celltoolbar": "Slideshow",
407401
"kernelspec": {
408402
"display_name": "Python 3",
409403
"language": "python",

0 commit comments

Comments
 (0)