From eba7f923f611825f277108c60dfff1d79ebf0dc6 Mon Sep 17 00:00:00 2001 From: kgeorgiev77 <48562595+kgeorgiev77@users.noreply.github.com> Date: Thu, 30 Sep 2021 18:24:43 +0300 Subject: [PATCH 01/11] Update README.md Updating table of participants. --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 2313615..c3c60e4 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,29 @@ |Номер| Име | Github | Бонбони | Отсъствия | |-----|-----|--------|---------|-----------| |5| Владимир Алексиев | [valeksiev](https://github.com/valeksiev) | 🍬 | | +|1| -----|-----|--------|---------|-----------| +|2| -----|-----|--------|---------|-----------| +|3| -----|-----|--------|---------|-----------| +|4| -----|-----|--------|---------|-----------| +|5| -----|-----|--------|---------|-----------| +|6| -----|-----|--------|---------|-----------| +|7| -----|-----|--------|---------|-----------| +|8| -----|-----|--------|---------|-----------| +|9| -----|-----|--------|---------|-----------| +|10| -----|-----|--------|---------|-----------| +|11| -----|-----|--------|---------|-----------| +|13| -----|-----|--------|---------|-----------| +|14| -----|-----|--------|---------|-----------| +|15| -----|-----|--------|---------|-----------| +|16| -----|-----|--------|---------|-----------| +|17| Калин Георгиев | [kgeorgiev77](https://github.com/kgeorgiev77) | 🍬 | | +|18| -----|-----|--------|---------|-----------| +|19| -----|-----|--------|---------|-----------| +|20| -----|-----|--------|---------|-----------| +|21| -----|-----|--------|---------|-----------| +|22| -----|-----|--------|---------|-----------| +|22| -----|-----|--------|---------|-----------| +|24| -----|-----|--------|---------|-----------| +|25| -----|-----|--------|---------|-----------| +|26| -----|-----|--------|---------|-----------| +|27| -----|-----|--------|---------|-----------| From 0ede3b3ef99957690642f9c797c38aeb6dd2270c Mon Sep 17 00:00:00 2001 From: kgeorgiev77 <48562595+kgeorgiev77@users.noreply.github.com> Date: Tue, 5 Oct 2021 21:53:08 +0300 Subject: [PATCH 02/11] Complete table with class information I put candy only in my row, because I wasn't sure, who has made PRs and deserves candies. Also, Emil Sharov and Adrian Yankovski aren't part of our class anymore. --- README.md | 52 +++++++++++++++++++++++++--------------------------- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index c3c60e4..0dc510b 100644 --- a/README.md +++ b/README.md @@ -2,30 +2,28 @@ |Номер| Име | Github | Бонбони | Отсъствия | |-----|-----|--------|---------|-----------| -|5| Владимир Алексиев | [valeksiev](https://github.com/valeksiev) | 🍬 | | -|1| -----|-----|--------|---------|-----------| -|2| -----|-----|--------|---------|-----------| -|3| -----|-----|--------|---------|-----------| -|4| -----|-----|--------|---------|-----------| -|5| -----|-----|--------|---------|-----------| -|6| -----|-----|--------|---------|-----------| -|7| -----|-----|--------|---------|-----------| -|8| -----|-----|--------|---------|-----------| -|9| -----|-----|--------|---------|-----------| -|10| -----|-----|--------|---------|-----------| -|11| -----|-----|--------|---------|-----------| -|13| -----|-----|--------|---------|-----------| -|14| -----|-----|--------|---------|-----------| -|15| -----|-----|--------|---------|-----------| -|16| -----|-----|--------|---------|-----------| -|17| Калин Георгиев | [kgeorgiev77](https://github.com/kgeorgiev77) | 🍬 | | -|18| -----|-----|--------|---------|-----------| -|19| -----|-----|--------|---------|-----------| -|20| -----|-----|--------|---------|-----------| -|21| -----|-----|--------|---------|-----------| -|22| -----|-----|--------|---------|-----------| -|22| -----|-----|--------|---------|-----------| -|24| -----|-----|--------|---------|-----------| -|25| -----|-----|--------|---------|-----------| -|26| -----|-----|--------|---------|-----------| -|27| -----|-----|--------|---------|-----------| +|1| Авигея Илиева | [AI18527](https://github.com/AI18527) | | | +|2| Алекс Гечовски | [AlexGechovski](https://github.com/AlexGechovski) | | | +|3| Александра Станчева | [allks12](https://github.com/allks12) | | | +|4| Боряна Стефанова| [Boryana23](https://github.com/Boryana23) | | | +|5| Валентин Найденов| [valentinmnaydenov](https://github.com/valentinmnaydenov) | | | +|6| Данаил Божков | [DBozhkovV](https://github.com/DBozhkovV) | | | +|7| Даниел Паунов | [McAwesome123](https://github.com/McAwesome123) | | | +|8| Елена Върбанова | [elenavarbanova](https://github.com/elenavarbanova) | | | +|9| Златина Лилова | [zlatililova](https://github.com/zlatililova) | | | +|10| Иваело Кръстев | [Ivaelo](https://github.com/Ivaelo) | | | +|11| Ивайло Димов | [IvailoDimov](https://github.com/IvailoDimov) | | | +|12| Ивайло Генчев | [Squidfishrl](https://github.com/Squidfishrl) | | | +|13| Иван Станчев | [IvanStanchev](https://github.com/IvanStanchev) | | | +|14| Йордан Христов | [dachkata555](https://github.com/dachkata555) | | | +|15| Калин Георгиев | [kgeorgiev77](https://github.com/kgeorgiev77) | 🍬 | | +|16| Кристиан Косев | [Grozdi](https://github.com/Grozdi) | | | +|17| Лъчезар Велинов | [Lachezar-Velinov](https://github.com/Lachezar-Velinov) | | | +|18| Лъчезар Лазаров | [LachezarLazarov](https://github.com/LachezarLazarov) | | | +|19| Мартин Златанов | [MartinZlatanov1](https://github.com/MartinZlatanov1) | | | +|20| Николай Лазаров| [NikolayLazarov](https://github.com/NikolayLazarov) | | | +|21| Пламен Цоков | [PlamenTs18](https://github.com/PlamenTs18) | | | +|22| Симеон Христов | [ItzNinjaCat](https://github.com/ItzNinjaCat) | | | +|23| Станислав Иванов | [Stanislav04](https://github.com/Stanislav04) | | | +|24| Явор Пачеджиев| [yavor2](https://github.com/yavor2) | | | +|25| Ясен Ефремов | [YassenEfremov](https://github.com/YassenEfremov) | | | From e5fd1dd3080ea1a8ac83ec92a864ccc245e2bdb7 Mon Sep 17 00:00:00 2001 From: kgeorgiev77 <48562595+kgeorgiev77@users.noreply.github.com> Date: Mon, 18 Oct 2021 21:16:07 +0300 Subject: [PATCH 03/11] Upload Homeword(compare circles) --- Kalin_georgiev_17.py | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Kalin_georgiev_17.py diff --git a/Kalin_georgiev_17.py b/Kalin_georgiev_17.py new file mode 100644 index 0000000..398907d --- /dev/null +++ b/Kalin_georgiev_17.py @@ -0,0 +1,38 @@ +import math + +def check_circles(c1_center, c1_radius, c2_center, c2_radius): + + (x1, y1) = c1_center + (x2, y2) = c2_center + distance_from_centers = math.sqrt((x1 - x2)**2 + (y1 - y2)**2) + sum_of_radiuses = c1_radius + c2_radius + + + +#checks if the circles match each other + if distance_from_centers == 0 and c1_radius == c2_radius: + return "The given circles are MATCHING!" + + +#checks if the circles are touching each other + if distance_from_centers == sum_of_radiuses: + return "The given circles are TOUCHING!" + + +#checks if one circle contain the other other + elif distance_from_centers + c2_radius <= c1_radius or distance_from_centers + c1_radius <= c2_radius: + return "One circle is CONTAINING the other!" + + +#checks if circles are touching in two points + elif distance_from_centers < sum_of_radiuses: + return "The given circles are INTERSECTING!" + + +#then circles have no common points + else: + return "Circles have NO_COMMON points!" + + + +#print(check_circles((1, 2), 3, (15, 27), 6)) \ No newline at end of file From 8fbbc39c74a2f727c122374a91e903457e64a912 Mon Sep 17 00:00:00 2001 From: kgeorgiev77 <48562595+kgeorgiev77@users.noreply.github.com> Date: Thu, 2 Dec 2021 12:19:33 +0200 Subject: [PATCH 04/11] Update README.md --- README.md | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 0dc510b..02fca22 100644 --- a/README.md +++ b/README.md @@ -3,27 +3,27 @@ |Номер| Име | Github | Бонбони | Отсъствия | |-----|-----|--------|---------|-----------| |1| Авигея Илиева | [AI18527](https://github.com/AI18527) | | | -|2| Алекс Гечовски | [AlexGechovski](https://github.com/AlexGechovski) | | | -|3| Александра Станчева | [allks12](https://github.com/allks12) | | | -|4| Боряна Стефанова| [Boryana23](https://github.com/Boryana23) | | | -|5| Валентин Найденов| [valentinmnaydenov](https://github.com/valentinmnaydenov) | | | -|6| Данаил Божков | [DBozhkovV](https://github.com/DBozhkovV) | | | -|7| Даниел Паунов | [McAwesome123](https://github.com/McAwesome123) | | | -|8| Елена Върбанова | [elenavarbanova](https://github.com/elenavarbanova) | | | -|9| Златина Лилова | [zlatililova](https://github.com/zlatililova) | | | -|10| Иваело Кръстев | [Ivaelo](https://github.com/Ivaelo) | | | -|11| Ивайло Димов | [IvailoDimov](https://github.com/IvailoDimov) | | | -|12| Ивайло Генчев | [Squidfishrl](https://github.com/Squidfishrl) | | | -|13| Иван Станчев | [IvanStanchev](https://github.com/IvanStanchev) | | | -|14| Йордан Христов | [dachkata555](https://github.com/dachkata555) | | | -|15| Калин Георгиев | [kgeorgiev77](https://github.com/kgeorgiev77) | 🍬 | | -|16| Кристиан Косев | [Grozdi](https://github.com/Grozdi) | | | -|17| Лъчезар Велинов | [Lachezar-Velinov](https://github.com/Lachezar-Velinov) | | | -|18| Лъчезар Лазаров | [LachezarLazarov](https://github.com/LachezarLazarov) | | | -|19| Мартин Златанов | [MartinZlatanov1](https://github.com/MartinZlatanov1) | | | -|20| Николай Лазаров| [NikolayLazarov](https://github.com/NikolayLazarov) | | | -|21| Пламен Цоков | [PlamenTs18](https://github.com/PlamenTs18) | | | -|22| Симеон Христов | [ItzNinjaCat](https://github.com/ItzNinjaCat) | | | -|23| Станислав Иванов | [Stanislav04](https://github.com/Stanislav04) | | | -|24| Явор Пачеджиев| [yavor2](https://github.com/yavor2) | | | -|25| Ясен Ефремов | [YassenEfremov](https://github.com/YassenEfremov) | | | +|3| Алекс Гечовски | [AlexGechovski](https://github.com/AlexGechovski) | | | +|4| Александра Станчева | [allks12](https://github.com/allks12) | | | +|5| Боряна Стефанова| [Boryana23](https://github.com/Boryana23) | | | +|6| Валентин Найденов| [valentinmnaydenov](https://github.com/valentinmnaydenov) | | | +|7| Данаил Божков | [DBozhkovV](https://github.com/DBozhkovV) | | | +|8| Даниел Паунов | [McAwesome123](https://github.com/McAwesome123) | | | +|9| Елена Върбанова | [elenavarbanova](https://github.com/elenavarbanova) | | | +|10| Златина Лилова | [zlatililova](https://github.com/zlatililova) | | | +|11| Иваело Кръстев | [Ivaelo](https://github.com/Ivaelo) | | | +|12| Ивайло Димов | [IvailoDimov](https://github.com/IvailoDimov) | | | +|13| Ивайло Генчев | [Squidfishrl](https://github.com/Squidfishrl) | | | +|14| Иван Станчев | [IvanStanchev](https://github.com/IvanStanchev) | | | +|15| Йордан Христов | [dachkata555](https://github.com/dachkata555) | | | +|16| Калин Георгиев | [kgeorgiev77](https://github.com/kgeorgiev77) | 🍬 | | +|17| Кристиан Косев | [Grozdi](https://github.com/Grozdi) | | | +|18| Лъчезар Велинов | [Lachezar-Velinov](https://github.com/Lachezar-Velinov) | | | +|19| Лъчезар Лазаров | [LachezarLazarov](https://github.com/LachezarLazarov) | | | +|20| Мартин Златанов | [MartinZlatanov1](https://github.com/MartinZlatanov1) | | | +|21| Николай Лазаров| [NikolayLazarov](https://github.com/NikolayLazarov) | | | +|22| Пламен Цоков | [PlamenTs18](https://github.com/PlamenTs18) | | | +|23| Симеон Христов | [ItzNinjaCat](https://github.com/ItzNinjaCat) | | | +|24| Станислав Иванов | [Stanislav04](https://github.com/Stanislav04) | | | +|25| Явор Пачеджиев| [yavor2](https://github.com/yavor2) | | | +|26| Ясен Ефремов | [YassenEfremov](https://github.com/YassenEfremov) | | | From f7882677d1da12821b3b06301b5d141a41296c58 Mon Sep 17 00:00:00 2001 From: kgeorgiev77 <48562595+kgeorgiev77@users.noreply.github.com> Date: Thu, 2 Dec 2021 12:33:57 +0200 Subject: [PATCH 05/11] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 02fca22..c4259de 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ ## Участници - |Номер| Име | Github | Бонбони | Отсъствия | |-----|-----|--------|---------|-----------| |1| Авигея Илиева | [AI18527](https://github.com/AI18527) | | | From 045bdc5e81ac75cbc4c156ae08aaf1d26b8b3293 Mon Sep 17 00:00:00 2001 From: kgeorgiev77 <48562595+kgeorgiev77@users.noreply.github.com> Date: Thu, 2 Dec 2021 12:37:12 +0200 Subject: [PATCH 06/11] Update README.md --- README.md | 52 ++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 44 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c4259de..6f0f136 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,39 @@ +## Записи + +|Час | Тема | Линк | +|-----|-----|--------| +|01| Уводна лекция | [Линк](https://www.youtube.com/watch?v=0xCOTZ-l8yI)| +|02| Python - увод | [Линк](https://www.youtube.com/watch?v=)| + +## Материали + +За слайдове използвам [Marp](https://marp.app/). В директорията `materials` ще качвам `*.md` версия на материалите. След инсталриане на `Marp` можете да си ги _компилирате_: +Например: +``` +$ marp 01.md && open 01.html +``` +ще компилира и отвори в браузъра по подразбиране първата лекция. +Има и други интересни неща, които оставям на вас както и инсталирането. Естествено можете да видите ги отваряте като нормални markdown файлове. + +## Участие/Contribute + +В директорията `materials` ше има поддиректория за всяка (или почти) всяка лекция. +Ако искате да добавяте материали към конкретна лекция - отворете PR с каквото искате да добавите в съответната директория. Приемат се `.md`, `py` и други тесктови файлове. Избягваме, даже не приемаме снимки. :) +Заедно с материалите добавяйте по 1 бонбон срещу името си - ако PR-a ви се мърджне - получавате си бонбона за награда. В следващия час ми напомнете да ви дам истински бонбон. + +Ако искате да поправите грешки или обогатите моите материали - по същия начин. + +Ако искате да направите и двете - не правете два отделни PR-a за 2 бонбона. :) По-скоро ще ви отнема един. + +## Бонбони/Отсъствия +### Бонбони +Накрая на срока ще направим скала по която брой бонбони съответсва на някоя оценка - дали да ви я напиша е по ваш изобр. Например, ако от контролни и домашни имате 4.45, с 6 от бонбони отивате на по-високата оценка. :) + +При получаване на физически бонбон в час - отваряте PR за да си го добавите в табличката. 5 бонбона = 1 парче торта 🍰, 5 парчета торта = на 1 цяла тората 🎂 + +### Отсъствия +За момента позволените **_неоснователни_** са 4. Всяка седмица имаме общо 4 часа. :) + ## Участници |Номер| Име | Github | Бонбони | Отсъствия | |-----|-----|--------|---------|-----------| @@ -6,23 +42,23 @@ |4| Александра Станчева | [allks12](https://github.com/allks12) | | | |5| Боряна Стефанова| [Boryana23](https://github.com/Boryana23) | | | |6| Валентин Найденов| [valentinmnaydenov](https://github.com/valentinmnaydenov) | | | -|7| Данаил Божков | [DBozhkovV](https://github.com/DBozhkovV) | | | +|7| Данаил Божков | [DBozhkovV](https://github.com/DBozhkovV) |🍬🍬🍬 | | |8| Даниел Паунов | [McAwesome123](https://github.com/McAwesome123) | | | |9| Елена Върбанова | [elenavarbanova](https://github.com/elenavarbanova) | | | |10| Златина Лилова | [zlatililova](https://github.com/zlatililova) | | | |11| Иваело Кръстев | [Ivaelo](https://github.com/Ivaelo) | | | |12| Ивайло Димов | [IvailoDimov](https://github.com/IvailoDimov) | | | |13| Ивайло Генчев | [Squidfishrl](https://github.com/Squidfishrl) | | | -|14| Иван Станчев | [IvanStanchev](https://github.com/IvanStanchev) | | | +|14| Иван Станчев | [IvanStanchev](https://github.com/IvanStanchev) | 🍬 | | |15| Йордан Христов | [dachkata555](https://github.com/dachkata555) | | | |16| Калин Георгиев | [kgeorgiev77](https://github.com/kgeorgiev77) | 🍬 | | |17| Кристиан Косев | [Grozdi](https://github.com/Grozdi) | | | -|18| Лъчезар Велинов | [Lachezar-Velinov](https://github.com/Lachezar-Velinov) | | | +|18| Лъчезар Велинов | [Lachezar-Velinov](https://github.com/Lachezar-Velinov) | 🍬 | | |19| Лъчезар Лазаров | [LachezarLazarov](https://github.com/LachezarLazarov) | | | -|20| Мартин Златанов | [MartinZlatanov1](https://github.com/MartinZlatanov1) | | | -|21| Николай Лазаров| [NikolayLazarov](https://github.com/NikolayLazarov) | | | +|20| Мартин Златанов | [MartinZlatanov1](https://github.com/MartinZlatanov1) |🍬 | | +|21| Николай Лазаров| [NikolayLazarov](https://github.com/NikolayLazarov) |🍬🍬 | | |22| Пламен Цоков | [PlamenTs18](https://github.com/PlamenTs18) | | | -|23| Симеон Христов | [ItzNinjaCat](https://github.com/ItzNinjaCat) | | | +|23| Симеон Христов | [ItzNinjaCat](https://github.com/ItzNinjaCat) |🍬🍬 | | |24| Станислав Иванов | [Stanislav04](https://github.com/Stanislav04) | | | -|25| Явор Пачеджиев| [yavor2](https://github.com/yavor2) | | | -|26| Ясен Ефремов | [YassenEfremov](https://github.com/YassenEfremov) | | | +|25| Явор Пачеджиев| [yavor2](https://github.com/yavor2) | 🍬 | | +|26| Ясен Ефремов | [YassenEfremov](https://github.com/YassenEfremov) | 🍬🍬🍬 | | From d85ab954ed86d23bfe43e8752d00c964afbbe9a6 Mon Sep 17 00:00:00 2001 From: kgeorgiev77 <48562595+kgeorgiev77@users.noreply.github.com> Date: Thu, 2 Dec 2021 12:40:20 +0200 Subject: [PATCH 07/11] Adding 2 candies First candy for the question about Story points. Second candy for estimating Story points for task. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6f0f136..aaee04a 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ $ marp 01.md && open 01.html |13| Ивайло Генчев | [Squidfishrl](https://github.com/Squidfishrl) | | | |14| Иван Станчев | [IvanStanchev](https://github.com/IvanStanchev) | 🍬 | | |15| Йордан Христов | [dachkata555](https://github.com/dachkata555) | | | -|16| Калин Георгиев | [kgeorgiev77](https://github.com/kgeorgiev77) | 🍬 | | +|16| Калин Георгиев | [kgeorgiev77](https://github.com/kgeorgiev77) | 🍬🍬🍬 | | |17| Кристиан Косев | [Grozdi](https://github.com/Grozdi) | | | |18| Лъчезар Велинов | [Lachezar-Velinov](https://github.com/Lachezar-Velinov) | 🍬 | | |19| Лъчезар Лазаров | [LachezarLazarov](https://github.com/LachezarLazarov) | | | From fa379eafc65bce47ad079d0bc14622459d26112a Mon Sep 17 00:00:00 2001 From: kgeorgiev77 <48562595+kgeorgiev77@users.noreply.github.com> Date: Mon, 6 Dec 2021 12:41:01 +0200 Subject: [PATCH 08/11] =?UTF-8?q?Adding=20candy=F0=9F=8D=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 83af765..8114e80 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ $ marp 01.md && open 01.html |13| Ивайло Генчев | [Squidfishrl](https://github.com/Squidfishrl) | | | |14| Иван Станчев | [IvanStanchev](https://github.com/IvanStanchev) | 🍬 | | |15| Йордан Христов | [dachkata555](https://github.com/dachkata555) | | | -|16| Калин Георгиев | [kgeorgiev77](https://github.com/kgeorgiev77) | 🍬🍬🍬 | | +|16| Калин Георгиев | [kgeorgiev77](https://github.com/kgeorgiev77) | 🍬🍬🍬🍬 | | |17| Кристиан Косев | [Grozdi](https://github.com/Grozdi) | | | |18| Лъчезар Велинов | [Lachezar-Velinov](https://github.com/Lachezar-Velinov) | 🍬 | | |19| Лъчезар Лазаров | [LachezarLazarov](https://github.com/LachezarLazarov) | | | From ac70e25e19b4643c4f77a11a258d0f91a4b8d67e Mon Sep 17 00:00:00 2001 From: kgeorgiev77 <48562595+kgeorgiev77@users.noreply.github.com> Date: Mon, 6 Dec 2021 13:12:19 +0200 Subject: [PATCH 09/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8114e80..83af765 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ $ marp 01.md && open 01.html |13| Ивайло Генчев | [Squidfishrl](https://github.com/Squidfishrl) | | | |14| Иван Станчев | [IvanStanchev](https://github.com/IvanStanchev) | 🍬 | | |15| Йордан Христов | [dachkata555](https://github.com/dachkata555) | | | -|16| Калин Георгиев | [kgeorgiev77](https://github.com/kgeorgiev77) | 🍬🍬🍬🍬 | | +|16| Калин Георгиев | [kgeorgiev77](https://github.com/kgeorgiev77) | 🍬🍬🍬 | | |17| Кристиан Косев | [Grozdi](https://github.com/Grozdi) | | | |18| Лъчезар Велинов | [Lachezar-Velinov](https://github.com/Lachezar-Velinov) | 🍬 | | |19| Лъчезар Лазаров | [LachezarLazarov](https://github.com/LachezarLazarov) | | | From 23851e0af4171ef79ee686304274ba7f8a054d02 Mon Sep 17 00:00:00 2001 From: kgeorgiev77 <48562595+kgeorgiev77@users.noreply.github.com> Date: Mon, 6 Dec 2021 13:21:36 +0200 Subject: [PATCH 10/11] =?UTF-8?q?Adding=20candy=F0=9F=8D=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 83af765..8114e80 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ $ marp 01.md && open 01.html |13| Ивайло Генчев | [Squidfishrl](https://github.com/Squidfishrl) | | | |14| Иван Станчев | [IvanStanchev](https://github.com/IvanStanchev) | 🍬 | | |15| Йордан Христов | [dachkata555](https://github.com/dachkata555) | | | -|16| Калин Георгиев | [kgeorgiev77](https://github.com/kgeorgiev77) | 🍬🍬🍬 | | +|16| Калин Георгиев | [kgeorgiev77](https://github.com/kgeorgiev77) | 🍬🍬🍬🍬 | | |17| Кристиан Косев | [Grozdi](https://github.com/Grozdi) | | | |18| Лъчезар Велинов | [Lachezar-Velinov](https://github.com/Lachezar-Velinov) | 🍬 | | |19| Лъчезар Лазаров | [LachezarLazarov](https://github.com/LachezarLazarov) | | | From 09423330e9d6c84856da3e7bc82bde37528b0d9d Mon Sep 17 00:00:00 2001 From: kgeorgiev77 <48562595+kgeorgiev77@users.noreply.github.com> Date: Thu, 13 Jan 2022 07:45:09 +0200 Subject: [PATCH 11/11] Homework2 --- second.py | 15 +++++++++++++++ third.py | 21 +++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 second.py create mode 100644 third.py diff --git a/second.py b/second.py new file mode 100644 index 0000000..bf010e6 --- /dev/null +++ b/second.py @@ -0,0 +1,15 @@ +#Дадена е стълба с N >= 2 стъпала. Стоим в началото на стълбата и можем да качим 1 или 2 стъпала наведнъж. +#Да се напише функция, `num_ways` която по подадено N връща броя на начини по които можем да изкачим +#стълбата - т.е. да стъпим на N-тото стъпало. +#task 2 + +def num_ways(steps): + if steps <= 2: + return steps + else: + return num_ways(steps-1) + num_ways(steps-2) + +steps = 3 +print(num_ways(steps)) + + diff --git a/third.py b/third.py new file mode 100644 index 0000000..f98adf7 --- /dev/null +++ b/third.py @@ -0,0 +1,21 @@ +#Даден е Python списък от елементи - низове, числа, списъци (вкл. като този), наредени н-торки. +#Да се напише функция `replace` с 3 аргумента - `list`, `find`, `replace`, където list e писък от типа по-горе, +#a find и replace са низове. Функцията връща нова версия на `list` в която всяко срещане на `find` e заменено с `replace`. +#task 3 + +def replace(list, find, replace1): + new_list = [] + ch = 0 + for i in list: + if i == find: + list[ch] = replace1 + if type(i) != int: + if len(i) > 1: + new_list = list[ch] + replace(new_list,find,replace1) + ch = ch + 1 + return list + +list = ['a',1,[['a','b'],1],([1,3,'a'],'b')] +res = replace(list,'a','c') +print(res) # => ['c',1,[['c','b'],1],([1,3,'c'],'b')]