Skip to content

Commit daf1827

Browse files
committed
Created using Colaboratory
1 parent fc214bf commit daf1827

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

marathon_day2.ipynb

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"colab": {
66
"name": "marathon_day2.ipynb",
77
"provenance": [],
8-
"authorship_tag": "ABX9TyNah8lGqIqLPVbg2Riz0OOS",
8+
"authorship_tag": "ABX9TyM272CXcfyqHYjAUQ0lZdpX",
99
"include_colab_link": true
1010
},
1111
"kernelspec": {
@@ -46,11 +46,11 @@
4646
"metadata": {
4747
"id": "LqJg6PVfW76b",
4848
"colab_type": "code",
49+
"outputId": "610507a9-d8d3-48b3-c86f-e4de83bc7580",
4950
"colab": {
5051
"base_uri": "https://localhost:8080/",
5152
"height": 51
52-
},
53-
"outputId": "610507a9-d8d3-48b3-c86f-e4de83bc7580"
53+
}
5454
},
5555
"source": [
5656
"year = int(input('Enter the year: '))\n",
@@ -59,7 +59,7 @@
5959
"else:\n",
6060
" print(year, 'Year is not leap')"
6161
],
62-
"execution_count": 2,
62+
"execution_count": 0,
6363
"outputs": [
6464
{
6565
"output_type": "stream",
@@ -87,11 +87,11 @@
8787
"metadata": {
8888
"id": "FZfwOAmYXMWz",
8989
"colab_type": "code",
90+
"outputId": "6e91f2ee-f3e4-4788-dc2e-a6dba71c5de2",
9091
"colab": {
9192
"base_uri": "https://localhost:8080/",
9293
"height": 51
93-
},
94-
"outputId": "6e91f2ee-f3e4-4788-dc2e-a6dba71c5de2"
94+
}
9595
},
9696
"source": [
9797
"a = int(input('Enter the number '))\n",
@@ -100,7 +100,7 @@
100100
"n3 = int( \"%s%s%s\" % (a,a,a) )\n",
101101
"print (n1*n2*n3)"
102102
],
103-
"execution_count": 4,
103+
"execution_count": 0,
104104
"outputs": [
105105
{
106106
"output_type": "stream",
@@ -127,11 +127,11 @@
127127
"metadata": {
128128
"id": "JnbO_eSeZW93",
129129
"colab_type": "code",
130+
"outputId": "ab949fab-226b-4baa-e833-a2c3642d9aed",
130131
"colab": {
131132
"base_uri": "https://localhost:8080/",
132133
"height": 51
133-
},
134-
"outputId": "ab949fab-226b-4baa-e833-a2c3642d9aed"
134+
}
135135
},
136136
"source": [
137137
"num = int(input(\"Enter a number: \"))\n",
@@ -141,7 +141,7 @@
141141
"else:\n",
142142
" print(\"This is an even number.\")"
143143
],
144-
"execution_count": 6,
144+
"execution_count": 0,
145145
"outputs": [
146146
{
147147
"output_type": "stream",
@@ -168,11 +168,11 @@
168168
"metadata": {
169169
"id": "eY6rNdPTbLqU",
170170
"colab_type": "code",
171+
"outputId": "f9f246fe-04cd-4728-d75b-eb425a1df615",
171172
"colab": {
172173
"base_uri": "https://localhost:8080/",
173174
"height": 136
174-
},
175-
"outputId": "f9f246fe-04cd-4728-d75b-eb425a1df615"
175+
}
176176
},
177177
"source": [
178178
"a = 5\n",
@@ -186,7 +186,7 @@
186186
"print(\"%d << 2 = %d (%s)\" % (b,b<<2,bin(b<<2)))\n",
187187
"print(\"%d >> 2 = %d (%s)\" % (b,b>>2,bin(b>>2)))"
188188
],
189-
"execution_count": 7,
189+
"execution_count": 0,
190190
"outputs": [
191191
{
192192
"output_type": "stream",
@@ -274,11 +274,11 @@
274274
"metadata": {
275275
"id": "B2knO2fGeTD8",
276276
"colab_type": "code",
277+
"outputId": "bebd3092-5855-46be-e35e-b244f32abbc6",
277278
"colab": {
278279
"base_uri": "https://localhost:8080/",
279280
"height": 68
280-
},
281-
"outputId": "bebd3092-5855-46be-e35e-b244f32abbc6"
281+
}
282282
},
283283
"source": [
284284
"a = input('Enter the first coordinates x,y: ').split(',')\n",
@@ -291,7 +291,7 @@
291291
"function = '{}x + {}y + {} = 0'.format(A, B, C)\n",
292292
"print(function)"
293293
],
294-
"execution_count": 14,
294+
"execution_count": 0,
295295
"outputs": [
296296
{
297297
"output_type": "stream",
@@ -323,11 +323,11 @@
323323
"metadata": {
324324
"id": "038Axd7-bskK",
325325
"colab_type": "code",
326+
"outputId": "10ca6339-c111-4122-f2ef-fec559b92dfc",
326327
"colab": {
327328
"base_uri": "https://localhost:8080/",
328329
"height": 119
329-
},
330-
"outputId": "10ca6339-c111-4122-f2ef-fec559b92dfc"
330+
}
331331
},
332332
"source": [
333333
"import random\n",
@@ -349,7 +349,7 @@
349349
"rand_uni = random.choice(chars[a:b])\n",
350350
"print('Random float number: {}'.format(rand_uni)) "
351351
],
352-
"execution_count": 15,
352+
"execution_count": 0,
353353
"outputs": [
354354
{
355355
"output_type": "stream",
@@ -380,11 +380,11 @@
380380
"metadata": {
381381
"id": "eg4GPMzuc3EJ",
382382
"colab_type": "code",
383+
"outputId": "ec264f3d-4379-46cc-c55e-015009e74f47",
383384
"colab": {
384385
"base_uri": "https://localhost:8080/",
385386
"height": 68
386-
},
387-
"outputId": "ec264f3d-4379-46cc-c55e-015009e74f47"
387+
}
388388
},
389389
"source": [
390390
"chars = 'abcdefghijklmnopqrstuvwxyz'\n",
@@ -400,7 +400,7 @@
400400
" second letter is {} - on {} position.\\\n",
401401
" Distance between them {}'.format(char_range[0], a, char_range[1], b, c))"
402402
],
403-
"execution_count": 12,
403+
"execution_count": 0,
404404
"outputs": [
405405
{
406406
"output_type": "stream",
@@ -428,19 +428,19 @@
428428
"metadata": {
429429
"id": "rfg8vk4XjB2y",
430430
"colab_type": "code",
431+
"outputId": "c7c1a3ab-362e-459f-d23e-15730fff0f09",
431432
"colab": {
432433
"base_uri": "https://localhost:8080/",
433434
"height": 51
434-
},
435-
"outputId": "c7c1a3ab-362e-459f-d23e-15730fff0f09"
435+
}
436436
},
437437
"source": [
438438
"chars = 'abcdefghijklmnopqrstuvwxyz'\n",
439439
"charindex = int(input('Enter the number of the letter'))\n",
440440
"char = chars[charindex-1]\n",
441441
"print('Letter: {}'.format(char))"
442442
],
443-
"execution_count": 18,
443+
"execution_count": 0,
444444
"outputs": [
445445
{
446446
"output_type": "stream",
@@ -468,11 +468,11 @@
468468
"metadata": {
469469
"id": "XBtO1nC9g09_",
470470
"colab_type": "code",
471+
"outputId": "e5dd6b48-e9d4-4f0b-fc49-6f62e797ce58",
471472
"colab": {
472473
"base_uri": "https://localhost:8080/",
473474
"height": 68
474-
},
475-
"outputId": "e5dd6b48-e9d4-4f0b-fc49-6f62e797ce58"
475+
}
476476
},
477477
"source": [
478478
"list_lenght = input('Enter the lengths of the triangle sides through the format x,y,z: ').split(',')\n",
@@ -497,7 +497,7 @@
497497
"else:\n",
498498
" print('Its not triangle')"
499499
],
500-
"execution_count": 17,
500+
"execution_count": 0,
501501
"outputs": [
502502
{
503503
"output_type": "stream",
@@ -526,11 +526,11 @@
526526
"metadata": {
527527
"id": "IyaHw2nKX6WR",
528528
"colab_type": "code",
529+
"outputId": "e7d2d032-5d9e-4ee1-f1fa-8a45a6299571",
529530
"colab": {
530531
"base_uri": "https://localhost:8080/",
531532
"height": 102
532-
},
533-
"outputId": "e7d2d032-5d9e-4ee1-f1fa-8a45a6299571"
533+
}
534534
},
535535
"source": [
536536
"print('Enter three numbers: ')\n",
@@ -539,17 +539,17 @@
539539
"c = int(input())\n",
540540
" \n",
541541
"if (a==b and a==c) or (b==c and b==a) or (c==a and c==b):\n",
542-
" print('There equal numbers, try again')\n",
542+
" print('There are equal numbers, try again')\n",
543543
"elif b < a < c or c < a < b:\n",
544544
" print('Medium:', a)\n",
545545
"elif a < b < c or c < b < a:\n",
546546
" print('Medium:', b)\n",
547547
"elif a < c < b or a < c < b: \n",
548548
" print('Medium:', c)\n",
549549
"else:\n",
550-
" print('There equal numbers, try again')"
550+
" print('There are equal numbers, try again')"
551551
],
552-
"execution_count": 5,
552+
"execution_count": 0,
553553
"outputs": [
554554
{
555555
"output_type": "stream",

0 commit comments

Comments
 (0)