From 5fa400d4064acff347f117e927bee7d15da4da08 Mon Sep 17 00:00:00 2001 From: MalikovArtur Date: Thu, 12 Sep 2019 22:53:30 +0300 Subject: [PATCH 01/17] =?UTF-8?q?=D0=9F=D1=80=D0=B8=D0=B2=D0=B5=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Artur | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Artur diff --git a/Artur b/Artur new file mode 100644 index 0000000..1150fa4 --- /dev/null +++ b/Artur @@ -0,0 +1,3 @@ +hello world +phystech is my live +goodbye \ No newline at end of file From 024a7933393a53cd001d843db93933ca452bc7c8 Mon Sep 17 00:00:00 2001 From: MalikovArtur Date: Thu, 12 Sep 2019 23:18:09 +0300 Subject: [PATCH 02/17] 2 --- "\320\265\320\263\320\260\320\276\320\262\321\211/Artur" | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 "\320\265\320\263\320\260\320\276\320\262\321\211/Artur" diff --git "a/\320\265\320\263\320\260\320\276\320\262\321\211/Artur" "b/\320\265\320\263\320\260\320\276\320\262\321\211/Artur" new file mode 100644 index 0000000..19a81c0 --- /dev/null +++ "b/\320\265\320\263\320\260\320\276\320\262\321\211/Artur" @@ -0,0 +1,3 @@ +hello world +phystech is my live +goodbye 0000000 \ No newline at end of file From af9380a01d87c974ae1ae11da82c12d0f125aebc Mon Sep 17 00:00:00 2001 From: MalikovArtur Date: Fri, 13 Sep 2019 20:33:09 +0300 Subject: [PATCH 03/17] =?UTF-8?q?=D0=9F=D1=80=D0=B8=D0=B2=D0=B5=D1=822?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rtyu | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 rtyu diff --git a/rtyu b/rtyu new file mode 100644 index 0000000..95f0b03 --- /dev/null +++ b/rtyu @@ -0,0 +1,3 @@ +trg +rger +egegg From 5216f68c30a67c998c6bf785b34e2e99029c6546 Mon Sep 17 00:00:00 2001 From: MalikovArtur Date: Fri, 13 Sep 2019 20:42:40 +0300 Subject: [PATCH 04/17] =?UTF-8?q?=D0=9F=D1=80=D0=B8=D0=B2=D0=B5=D1=823?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "\320\265\320\263\320\260\320\276\320\262\321\211/ytui" | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 "\320\265\320\263\320\260\320\276\320\262\321\211/ytui" diff --git "a/\320\265\320\263\320\260\320\276\320\262\321\211/ytui" "b/\320\265\320\263\320\260\320\276\320\262\321\211/ytui" new file mode 100644 index 0000000..94e55dd --- /dev/null +++ "b/\320\265\320\263\320\260\320\276\320\262\321\211/ytui" @@ -0,0 +1,3 @@ +ghj +utyi +njvi \ No newline at end of file From 74eda6d34d4c30e16c857919fa331e3c9b8dad2c Mon Sep 17 00:00:00 2001 From: MalikovArtur Date: Sat, 21 Sep 2019 10:53:05 +0300 Subject: [PATCH 05/17] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B2=D0=B0=D1=8F=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ex1.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 ex1.py diff --git a/ex1.py b/ex1.py new file mode 100644 index 0000000..42955d8 --- /dev/null +++ b/ex1.py @@ -0,0 +1,4 @@ +n = 1439 #сюда вписать любое число от 0 до 1439 +b = n // 60 +c = n - b*60 +print(b, ':', c, ) #мне интересно, как сделать чтоб между числами в ответе не было пробелов \ No newline at end of file From 771c3c0dd39417f3bfc7a57e6595dcbb440ed0ef Mon Sep 17 00:00:00 2001 From: MalikovArtur Date: Sat, 21 Sep 2019 10:53:48 +0300 Subject: [PATCH 06/17] =?UTF-8?q?=D0=92=D1=82=D0=BE=D1=80=D0=B0=D1=8F=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ex2.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 ex2.py diff --git a/ex2.py b/ex2.py new file mode 100644 index 0000000..7bb669b --- /dev/null +++ b/ex2.py @@ -0,0 +1,2 @@ +a = 'qwerty' +print('Hello, ' + (a + ', ')*4 + a) From b196dc65ec270634583996fd4463ffd9d0f6c44d Mon Sep 17 00:00:00 2001 From: MalikovArtur Date: Sat, 21 Sep 2019 10:54:11 +0300 Subject: [PATCH 07/17] =?UTF-8?q?=D0=A2=D1=80=D0=B5=D1=82=D1=8C=D1=8F=20?= =?UTF-8?q?=D0=B8=20=D1=87=D0=B5=D1=82=D0=B2=D1=91=D1=80=D1=82=D0=B0=D1=8F?= =?UTF-8?q?=20=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ex3.py | 9 +++++++++ ex4.py | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 ex3.py create mode 100644 ex4.py diff --git a/ex3.py b/ex3.py new file mode 100644 index 0000000..0b3bb71 --- /dev/null +++ b/ex3.py @@ -0,0 +1,9 @@ +a = 3 +b = 4 +c = 5 +if c < a and c < b: + print(c) +elif b < a and b < c: + print(b) +else: + print(a) \ No newline at end of file diff --git a/ex4.py b/ex4.py new file mode 100644 index 0000000..08d756a --- /dev/null +++ b/ex4.py @@ -0,0 +1,8 @@ +v = -10 +t = 3 +if abs(v*t) > 108: + print('') +elif v > 0 or v == 0: + print(v * t) +else : + print(108 + v*t) # не знаю, считается это или нет, то ли вы имели ввиду From 83db1e8eeac5f6c67272434c507e697a0d82eaee Mon Sep 17 00:00:00 2001 From: MalikovArtur Date: Sat, 21 Sep 2019 11:51:17 +0300 Subject: [PATCH 08/17] =?UTF-8?q?=D0=9F=D1=8F=D1=82=D0=B0=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ex5.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 ex5.py diff --git a/ex5.py b/ex5.py new file mode 100644 index 0000000..aad47dc --- /dev/null +++ b/ex5.py @@ -0,0 +1,7 @@ +n = int(input("Число:")) +sum = 0 +a = 1 +for i in range(1, n+1): + a *= i + sum += a +print(sum) \ No newline at end of file From a932423bbb1988f79fe1759f927164035856a79c Mon Sep 17 00:00:00 2001 From: MalikovArtur Date: Sat, 21 Sep 2019 13:52:50 +0300 Subject: [PATCH 09/17] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B4=D0=B5?= =?UTF-8?q?=D0=BB=D0=B0=D0=BD=D0=BD=D0=B0=D1=8F=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ex2,.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 ex2,.py diff --git a/ex2,.py b/ex2,.py new file mode 100644 index 0000000..4a27c28 --- /dev/null +++ b/ex2,.py @@ -0,0 +1,4 @@ +a = int(input("Число:")) +b = a-1 +text = input("Строка:") +print('Hello,', (text + ', ')*b, text, end='') From b0a4e7416f0d632ecf079595f9efb9ac0ea8c058 Mon Sep 17 00:00:00 2001 From: MalikovArtur Date: Mon, 23 Sep 2019 21:44:26 +0300 Subject: [PATCH 10/17] =?UTF-8?q?7,=208,=209=20=D0=B7=D0=B0=D0=B4=D0=B0?= =?UTF-8?q?=D1=87=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ex7.py | 4 ++++ ex8.py | 4 ++++ ex9.py | 9 +++++++++ 3 files changed, 17 insertions(+) create mode 100644 ex7.py create mode 100644 ex8.py create mode 100644 ex9.py diff --git a/ex7.py b/ex7.py new file mode 100644 index 0000000..2cee928 --- /dev/null +++ b/ex7.py @@ -0,0 +1,4 @@ +a = [1, 'treg', 67, 8, 'huter'] +for i in range(len(a)): + if i % 2 == 0: + print(a[i]) diff --git a/ex8.py b/ex8.py new file mode 100644 index 0000000..c5fe1da --- /dev/null +++ b/ex8.py @@ -0,0 +1,4 @@ +a = [1, 6, 67, 8, 24, 0] +for i in range(len(a)): + if a[i] % 2 == 0: + print(a[i]) \ No newline at end of file diff --git a/ex9.py b/ex9.py new file mode 100644 index 0000000..e10fb37 --- /dev/null +++ b/ex9.py @@ -0,0 +1,9 @@ +x1 = float(input("Координата первой точки по оси абцисс: ")) +x2 = float(input("Координата второй точки по оси абцисс: ")) +y1 = float(input("Координата первой точки по оси ординат: ")) +y2 = float(input("Координата второй точки по оси ординат: ")) +def distance(x1, x2, y1, y2): + result = ((x1-x2)**2 + (y1-y2)**2)**0.5 + print(result) +distance(x1, x2, y1, y2) + From 4945be446e907e2184cf3cbc6a6a7963acd6e55d Mon Sep 17 00:00:00 2001 From: MalikovArtur Date: Sat, 5 Oct 2019 11:33:58 +0300 Subject: [PATCH 11/17] =?UTF-8?q?2=20-=2012=20=D0=B7=D0=B0=D0=B4=D0=B0?= =?UTF-8?q?=D1=87=D0=B8=20=D1=81=20=D1=87=D0=B5=D1=80=D0=B5=D0=BF=D0=B0?= =?UTF-8?q?=D1=88=D0=BA=D0=BE=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ex2,.py | 18 ++++++++++++++---- ex3.py | 19 ++++++++++--------- ex4,.py | 7 +++++++ ex4.py | 8 -------- ex5.py | 21 ++++++++++++++------- ex6.py | 12 ++++++++++++ ex7.py | 12 ++++++++---- ex8.py | 9 +++++---- ex9.py | 28 ++++++++++++++++++++-------- week03/ex10.py | 21 +++++++++++++++++++++ week03/ex11.py | 18 ++++++++++++++++++ week03/ex12.py | 16 ++++++++++++++++ 12 files changed, 145 insertions(+), 44 deletions(-) create mode 100644 ex4,.py delete mode 100644 ex4.py create mode 100644 ex6.py create mode 100644 week03/ex10.py create mode 100644 week03/ex11.py create mode 100644 week03/ex12.py diff --git a/ex2,.py b/ex2,.py index 4a27c28..3634301 100644 --- a/ex2,.py +++ b/ex2,.py @@ -1,4 +1,14 @@ -a = int(input("Число:")) -b = a-1 -text = input("Строка:") -print('Hello,', (text + ', ')*b, text, end='') +import turtle + +turtle.shape('turtle') +turtle.forward(50) +turtle.left(90) +turtle.forward(50) +turtle.left(90) +turtle.forward(50) +turtle.right(90) +turtle.forward(50) +turtle.right(90) +turtle.forward(50) + + diff --git a/ex3.py b/ex3.py index 0b3bb71..d70b1a9 100644 --- a/ex3.py +++ b/ex3.py @@ -1,9 +1,10 @@ -a = 3 -b = 4 -c = 5 -if c < a and c < b: - print(c) -elif b < a and b < c: - print(b) -else: - print(a) \ No newline at end of file +import turtle +turtle.shape("turtle") +turtle.forward(50) +turtle.left(90) +turtle.forward(50) +turtle.left(90) +turtle.forward(50) +turtle.left(90) +turtle.forward(50) +turtle.left(90) \ No newline at end of file diff --git a/ex4,.py b/ex4,.py new file mode 100644 index 0000000..6fe28b6 --- /dev/null +++ b/ex4,.py @@ -0,0 +1,7 @@ +import turtle +turtle.shape("turtle") +for i in range(100): + turtle.forward(10) + turtle.left(180-180*(100-2)/100) + + diff --git a/ex4.py b/ex4.py deleted file mode 100644 index 08d756a..0000000 --- a/ex4.py +++ /dev/null @@ -1,8 +0,0 @@ -v = -10 -t = 3 -if abs(v*t) > 108: - print('') -elif v > 0 or v == 0: - print(v * t) -else : - print(108 + v*t) # не знаю, считается это или нет, то ли вы имели ввиду diff --git a/ex5.py b/ex5.py index aad47dc..ac288fd 100644 --- a/ex5.py +++ b/ex5.py @@ -1,7 +1,14 @@ -n = int(input("Число:")) -sum = 0 -a = 1 -for i in range(1, n+1): - a *= i - sum += a -print(sum) \ No newline at end of file +import turtle +turtle.shape("turtle") +for i in range(10): + turtle.forward(30 + 2*i*10) + turtle.left(90) + turtle.forward(30 + 2*i*10) + turtle.left(90) + turtle.forward(30 + 2*i*10) + turtle.left(90) + turtle.forward(30 + 2*i*10) + turtle.left(90) + turtle.penup() + turtle.goto(-10-i*10,-10-i*10) + turtle.pendown() diff --git a/ex6.py b/ex6.py new file mode 100644 index 0000000..008a1ea --- /dev/null +++ b/ex6.py @@ -0,0 +1,12 @@ +n = int(input("ножки: ")) +import turtle + +turtle.shape('turtle') +for i in range(n): + turtle.forward(100) + turtle.stamp() + turtle.left(180) + turtle.forward(100) + turtle.left(180 - 360/n) + + diff --git a/ex7.py b/ex7.py index 2cee928..a46e1b6 100644 --- a/ex7.py +++ b/ex7.py @@ -1,4 +1,8 @@ -a = [1, 'treg', 67, 8, 'huter'] -for i in range(len(a)): - if i % 2 == 0: - print(a[i]) +import turtle + +turtle.shape('turtle') +n = 10 +for i in range(1, 1000): + h = (1/360)*n + turtle.left(n) + turtle.forward(0.1*i + h) diff --git a/ex8.py b/ex8.py index c5fe1da..39795cf 100644 --- a/ex8.py +++ b/ex8.py @@ -1,4 +1,5 @@ -a = [1, 6, 67, 8, 24, 0] -for i in range(len(a)): - if a[i] % 2 == 0: - print(a[i]) \ No newline at end of file +import turtle +turtle.shape('turtle') +for i in range(1, 1000): + turtle.forward(i*3) + turtle.left(90) \ No newline at end of file diff --git a/ex9.py b/ex9.py index e10fb37..d86508e 100644 --- a/ex9.py +++ b/ex9.py @@ -1,9 +1,21 @@ -x1 = float(input("Координата первой точки по оси абцисс: ")) -x2 = float(input("Координата второй точки по оси абцисс: ")) -y1 = float(input("Координата первой точки по оси ординат: ")) -y2 = float(input("Координата второй точки по оси ординат: ")) -def distance(x1, x2, y1, y2): - result = ((x1-x2)**2 + (y1-y2)**2)**0.5 - print(result) -distance(x1, x2, y1, y2) +import turtle +turtle.shape('turtle') +def geom(n): + turtle.left(180 - 180 * (n - 2) / n / 2) + for i in range(n): + turtle.forward(20*n) + turtle.left(180-180*(n-2)/n) + turtle.right(180 - 180 * (n - 2) / n / 2) + + +for i in range(3, 13): + geom(i) + turtle.penup() + turtle.goto((i-2)*33, 0) + turtle.pendown() + + + + + diff --git a/week03/ex10.py b/week03/ex10.py new file mode 100644 index 0000000..0e0e20e --- /dev/null +++ b/week03/ex10.py @@ -0,0 +1,21 @@ +import turtle +turtle.shape("turtle") +def circleL(n): + turtle.left(n) + for i in range(50): + turtle.forward(5) + turtle.left(180-180*(50-2)/50) + + +def circleR(n): + turtle.left(n) + for i in range(50): + turtle.forward(5) + turtle.right(180-180*(50-2)/50) + +circleL(0) +circleR(0) +circleL(60) +circleR(0) +circleL(60) +circleR(0) diff --git a/week03/ex11.py b/week03/ex11.py new file mode 100644 index 0000000..b116cc8 --- /dev/null +++ b/week03/ex11.py @@ -0,0 +1,18 @@ +import turtle +turtle.shape("turtle") +def circleL(n): + turtle.right(0) + for i in range(50): + turtle.left(180 - 180 * (50 - 2) / 50) + turtle.forward(n) + +def circleR(n): + turtle.left(0) + for i in range(50): + turtle.forward(n) + turtle.right(180-180*(50-2)/50) + +turtle.left(90) +for i in range(6): + circleL(5 + i) + circleR(5 + i) \ No newline at end of file diff --git a/week03/ex12.py b/week03/ex12.py new file mode 100644 index 0000000..747a291 --- /dev/null +++ b/week03/ex12.py @@ -0,0 +1,16 @@ +import turtle +turtle.shape("turtle") +def arc(n): + for i in range(50): + turtle.forward(n) + turtle.right(180-180*(100-2)/100) + +turtle.penup() +turtle.goto(-900, 0) +turtle.pendown() +turtle.left(90) +for u in range(5): + arc(10) + arc(1) + + From 9a5a294b91012283853861f4abf3ac35af1c2d65 Mon Sep 17 00:00:00 2001 From: MalikovArtur Date: Mon, 7 Oct 2019 22:14:06 +0300 Subject: [PATCH 12/17] =?UTF-8?q?13-14=20=D0=B7=D0=B0=D0=B4=D0=B0=D1=87?= =?UTF-8?q?=D0=B8=20=D1=81=20=D1=87=D0=B5=D1=80=D0=B5=D0=BF=D0=B0=D1=88?= =?UTF-8?q?=D0=BA=D0=BE=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- week03/ex13.py | 43 +++++++++++++++++++++++++++++++++++++++++++ week03/ex14.py | 11 +++++++++++ 2 files changed, 54 insertions(+) create mode 100644 week03/ex13.py create mode 100644 week03/ex14.py diff --git a/week03/ex13.py b/week03/ex13.py new file mode 100644 index 0000000..026124b --- /dev/null +++ b/week03/ex13.py @@ -0,0 +1,43 @@ +import turtle +turtle.shape("turtle") +turtle.begin_fill() +for i in range(100): + turtle.forward(10) + turtle.left(180-180*(100-2)/100) +turtle.color('yellow') +turtle.end_fill() +turtle.penup() +turtle.color('black') +turtle.goto(-45, 230) +turtle.pendown() +turtle.begin_fill() +for i in range(100): + turtle.forward(1) + turtle.left(180-180*(100-2)/100) +turtle.color('blue') +turtle.end_fill() +turtle.penup() +turtle.color('black') +turtle.goto(45, 230) +turtle.pendown() +turtle.begin_fill() +for i in range(100): + turtle.forward(1) + turtle.left(180-180*(100-2)/100) +turtle.color('blue') +turtle.end_fill() +turtle.penup() +turtle.color('black') +turtle.goto(0, 180) +turtle.pendown() +turtle.right(90) +turtle.width(10) +turtle.forward(50) +turtle.penup() +turtle.color('black') +turtle.goto(65, 130) +turtle.pendown() +turtle.color('red') +for i in range(50): + turtle.forward(4) + turtle.right(180 - 180 * (100 - 2) / 100) diff --git a/week03/ex14.py b/week03/ex14.py new file mode 100644 index 0000000..0469dd2 --- /dev/null +++ b/week03/ex14.py @@ -0,0 +1,11 @@ +import turtle +turtle.shape("turtle") +def star(n): + turtle.left(180) + for i in range(n): + turtle.forward(150) + turtle.left(180-180/n) + +star(5) +star(11) + From af913abc0c9fd5c4f616e7f3a118db2c4850a20f Mon Sep 17 00:00:00 2001 From: MalikovArtur Date: Fri, 11 Oct 2019 20:10:46 +0300 Subject: [PATCH 13/17] =?UTF-8?q?1=20-=207=20=D0=B7=D0=B0=D0=B4=D0=B0?= =?UTF-8?q?=D1=87=D0=B8=20=D1=81=204=20=D0=BD=D0=B5=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=B8.=20=D0=9C=D0=B0=D0=BB=D0=B8=D0=BA=D0=BE=D0=B2=20=D0=90?= =?UTF-8?q?=D1=80=D1=82=D1=83=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- week04/ex4_1.py | 6 ++++++ week04/ex4_2.py | 34 ++++++++++++++++++++++++++++++++++ week04/ex4_3.py | 18 ++++++++++++++++++ week04/ex4_4.py | 7 +++++++ week04/ex4_5.py | 8 ++++++++ week04/ex4_6.py | 12 ++++++++++++ week04/ex4_7.py | 0 7 files changed, 85 insertions(+) create mode 100644 week04/ex4_1.py create mode 100644 week04/ex4_2.py create mode 100644 week04/ex4_3.py create mode 100644 week04/ex4_4.py create mode 100644 week04/ex4_5.py create mode 100644 week04/ex4_6.py create mode 100644 week04/ex4_7.py diff --git a/week04/ex4_1.py b/week04/ex4_1.py new file mode 100644 index 0000000..e695db8 --- /dev/null +++ b/week04/ex4_1.py @@ -0,0 +1,6 @@ +lst = [1, 3, 6, 5, 7, 3, 8, 9, 10, 4, 5, 1] +a = 0 +for i in range(1, len(lst)-1): + if lst[i]>lst[i+1] and lst[i]>lst[i-1]: + a += 1 +print(a) diff --git a/week04/ex4_2.py b/week04/ex4_2.py new file mode 100644 index 0000000..535b756 --- /dev/null +++ b/week04/ex4_2.py @@ -0,0 +1,34 @@ +lst = [10, 3, 2, 4, 5, 1, 7, 6, 8, 9] +M = lst[1] +for i in range(len(lst)): + if lst[i]>M: + M = lst[i] +m = lst[1] +for i in range(len(lst)): + if lst[i]M: + M = lst1[i] + k = i +m = lst1[1] +for i in range(len(lst1)): + if lst1[i] Date: Fri, 11 Oct 2019 20:26:00 +0300 Subject: [PATCH 14/17] =?UTF-8?q?=D0=9E=D0=BD=D0=BE=20=D0=B1=D0=B5=D0=B7?= =?UTF-8?q?=20=D1=8D=D1=82=D0=BE=D0=B3=D0=BE=20=D0=BD=D0=B5=20=D1=85=D0=BE?= =?UTF-8?q?=D1=82=D0=B5=D0=BB=D0=BE=20=D0=BC=D1=91=D1=80=D0=B6=D0=B8=D1=82?= =?UTF-8?q?=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- week04/Untitled.ipynb | 50 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 week04/Untitled.ipynb diff --git a/week04/Untitled.ipynb b/week04/Untitled.ipynb new file mode 100644 index 0000000..8fe1ff7 --- /dev/null +++ b/week04/Untitled.ipynb @@ -0,0 +1,50 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 8, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "True\n" + ] + } + ], + "source": [ + "st = {1, 2, 3, 6, 5}\n", + "print((1 in st) == True)\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.7.3" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} From c421dcec989d1b26afe4a06d21d31fb9f3d949b1 Mon Sep 17 00:00:00 2001 From: MalikovArtur Date: Fri, 11 Oct 2019 20:42:08 +0300 Subject: [PATCH 15/17] =?UTF-8?q?=D0=9E=D0=BD=D0=BE=20=D0=B1=D0=B5=D0=B7?= =?UTF-8?q?=20=D1=8D=D1=82=D0=BE=D0=B3=D0=BE=20=D0=BD=D0=B5=20=D1=85=D0=BE?= =?UTF-8?q?=D1=82=D0=B5=D0=BB=D0=BE=20=D0=BC=D1=91=D1=80=D0=B6=D0=B8=D1=82?= =?UTF-8?q?=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Untitled3.ipynb | 45 +++++++++++++++++++++++++++++++++++++++++++++ ex1,.py | 4 ++++ ex1.py | 4 ---- ex2.py | 2 -- ex3.py | 4 +++- 5 files changed, 52 insertions(+), 7 deletions(-) create mode 100644 Untitled3.ipynb create mode 100644 ex1,.py delete mode 100644 ex1.py delete mode 100644 ex2.py diff --git a/Untitled3.ipynb b/Untitled3.ipynb new file mode 100644 index 0000000..b8e4c66 --- /dev/null +++ b/Untitled3.ipynb @@ -0,0 +1,45 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [], + "source": [ + "import turtle\n", + "\n", + "turtle.shape('turtle')\n", + "turtle.forward(50)\n", + "turtle.left(90)\n", + "turtle.forward(50)\n", + "turtle.left(90)\n", + "turtle.forward(50)\n", + "turtle.right(90)\n", + "turtle.forward(50)\n", + "turtle.right(90)\n", + "turtle.forward(50)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.7.3" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/ex1,.py b/ex1,.py new file mode 100644 index 0000000..50a828e --- /dev/null +++ b/ex1,.py @@ -0,0 +1,4 @@ +n = int(input()) +b = (n //60) % 24 +c = n % 60 +print(b, ':', c , ) \ No newline at end of file diff --git a/ex1.py b/ex1.py deleted file mode 100644 index 42955d8..0000000 --- a/ex1.py +++ /dev/null @@ -1,4 +0,0 @@ -n = 1439 #сюда вписать любое число от 0 до 1439 -b = n // 60 -c = n - b*60 -print(b, ':', c, ) #мне интересно, как сделать чтоб между числами в ответе не было пробелов \ No newline at end of file diff --git a/ex2.py b/ex2.py deleted file mode 100644 index 7bb669b..0000000 --- a/ex2.py +++ /dev/null @@ -1,2 +0,0 @@ -a = 'qwerty' -print('Hello, ' + (a + ', ')*4 + a) diff --git a/ex3.py b/ex3.py index d70b1a9..79adace 100644 --- a/ex3.py +++ b/ex3.py @@ -7,4 +7,6 @@ turtle.forward(50) turtle.left(90) turtle.forward(50) -turtle.left(90) \ No newline at end of file +turtle.left(90) +turtle.color('red') + From d47d003c6bfd319ab4099e1e763687452044a8fb Mon Sep 17 00:00:00 2001 From: MalikovArtur Date: Fri, 11 Oct 2019 20:46:54 +0300 Subject: [PATCH 16/17] =?UTF-8?q?=D0=A4=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2?= =?UTF-8?q?=20=D0=BD=D0=BE=D0=B2=D0=BE=D0=B9=20=D0=B2=D0=B5=D1=82=D0=BA?= =?UTF-8?q?=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- new1.py | 1 + new2.py | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 new1.py create mode 100644 new2.py diff --git a/new1.py b/new1.py new file mode 100644 index 0000000..2908cb0 --- /dev/null +++ b/new1.py @@ -0,0 +1 @@ +djn djn \ No newline at end of file diff --git a/new2.py b/new2.py new file mode 100644 index 0000000..6088fef --- /dev/null +++ b/new2.py @@ -0,0 +1,2 @@ +ggwfwf +wfwf \ No newline at end of file From c7fd9b7c1cc1d7429a2b6a0dfbf0f55cd96fb4c7 Mon Sep 17 00:00:00 2001 From: MalikovArtur Date: Mon, 14 Oct 2019 09:55:39 +0300 Subject: [PATCH 17/17] =?UTF-8?q?=D0=94=D0=BE=D0=BC=D0=B0=D1=88=D0=BD?= =?UTF-8?q?=D0=B5=D0=B5=20=D0=B7=D0=B0=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D1=81=20=D1=87=D0=B5=D1=80=D0=B5=D0=BF=D0=B0=D1=88=D0=BA=D0=BE?= =?UTF-8?q?=D0=B9=20=D0=BF=D0=BE=203=20=D0=BD=D0=B5=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=B5.=20=D0=9C=D0=B0=D0=BB=D0=B8=D0=BA=D0=BE=D0=B2=20=D0=90?= =?UTF-8?q?=D1=80=D1=82=D1=83=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ex2,.py => ex2.week3.py | 0 ex3.py => ex3week3.py | 0 ex4,.py => ex4week3.py | 0 ex5.py => ex5week3.py | 0 ex6.py => ex6week3.py | 0 ex7.py => ex7week3py | 0 ex8.py => ex8week3.py | 0 ex9.py => ex9week3.py | 0 week03/{ex10.py => ex10week3.py} | 0 week03/{ex11.py => ex11week3.py} | 0 week03/{ex12.py => ex12week3.py} | 0 week03/{ex13.py => ex13week3.py} | 0 week03/{ex14.py => ex14week3.py} | 0 13 files changed, 0 insertions(+), 0 deletions(-) rename ex2,.py => ex2.week3.py (100%) rename ex3.py => ex3week3.py (100%) rename ex4,.py => ex4week3.py (100%) rename ex5.py => ex5week3.py (100%) rename ex6.py => ex6week3.py (100%) rename ex7.py => ex7week3py (100%) rename ex8.py => ex8week3.py (100%) rename ex9.py => ex9week3.py (100%) rename week03/{ex10.py => ex10week3.py} (100%) rename week03/{ex11.py => ex11week3.py} (100%) rename week03/{ex12.py => ex12week3.py} (100%) rename week03/{ex13.py => ex13week3.py} (100%) rename week03/{ex14.py => ex14week3.py} (100%) diff --git a/ex2,.py b/ex2.week3.py similarity index 100% rename from ex2,.py rename to ex2.week3.py diff --git a/ex3.py b/ex3week3.py similarity index 100% rename from ex3.py rename to ex3week3.py diff --git a/ex4,.py b/ex4week3.py similarity index 100% rename from ex4,.py rename to ex4week3.py diff --git a/ex5.py b/ex5week3.py similarity index 100% rename from ex5.py rename to ex5week3.py diff --git a/ex6.py b/ex6week3.py similarity index 100% rename from ex6.py rename to ex6week3.py diff --git a/ex7.py b/ex7week3py similarity index 100% rename from ex7.py rename to ex7week3py diff --git a/ex8.py b/ex8week3.py similarity index 100% rename from ex8.py rename to ex8week3.py diff --git a/ex9.py b/ex9week3.py similarity index 100% rename from ex9.py rename to ex9week3.py diff --git a/week03/ex10.py b/week03/ex10week3.py similarity index 100% rename from week03/ex10.py rename to week03/ex10week3.py diff --git a/week03/ex11.py b/week03/ex11week3.py similarity index 100% rename from week03/ex11.py rename to week03/ex11week3.py diff --git a/week03/ex12.py b/week03/ex12week3.py similarity index 100% rename from week03/ex12.py rename to week03/ex12week3.py diff --git a/week03/ex13.py b/week03/ex13week3.py similarity index 100% rename from week03/ex13.py rename to week03/ex13week3.py diff --git a/week03/ex14.py b/week03/ex14week3.py similarity index 100% rename from week03/ex14.py rename to week03/ex14week3.py