From ad18f15474bd5e73e29f9dc33c82dacbd47f7a08 Mon Sep 17 00:00:00 2001 From: AlisherShalenov Date: Tue, 31 Mar 2026 23:48:57 +0300 Subject: [PATCH 1/8] Create info_alisher_shalenov.py --- Week01/info_alisher_shalenov.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Week01/info_alisher_shalenov.py diff --git a/Week01/info_alisher_shalenov.py b/Week01/info_alisher_shalenov.py new file mode 100644 index 00000000..fbcddada --- /dev/null +++ b/Week01/info_alisher_shalenov.py @@ -0,0 +1,5 @@ +def get_student_info(): + return { + "student_id": "220316077", + "full_name": "Alisher Shalenov" + } From 850362ed09eadba0e09b3ec3698e502d5ca9d54d Mon Sep 17 00:00:00 2001 From: AlisherShalenov Date: Wed, 1 Apr 2026 00:30:21 +0300 Subject: [PATCH 2/8] Update info_alisher_shalenov.py --- Week01/info_alisher_shalenov.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Week01/info_alisher_shalenov.py b/Week01/info_alisher_shalenov.py index fbcddada..f8f22615 100644 --- a/Week01/info_alisher_shalenov.py +++ b/Week01/info_alisher_shalenov.py @@ -1,5 +1,2 @@ -def get_student_info(): - return { - "student_id": "220316077", - "full_name": "Alisher Shalenov" - } +student_id = "220316077" +full_name = "Alisher Shalenov" From 88fc0defded571f0101f70d9aff762a65f9807b3 Mon Sep 17 00:00:00 2001 From: Alisher Shalenov Date: Wed, 3 Jun 2026 16:28:55 +0300 Subject: [PATCH 3/8] Create types_alisher_shalenov.py --- .gitignore | 3 +++ Week02/types_alisher_shalenov.py | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 .gitignore create mode 100644 Week02/types_alisher_shalenov.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..8c75de4b --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.idea/ +__pycache__/ +*.pyc \ No newline at end of file diff --git a/Week02/types_alisher_shalenov.py b/Week02/types_alisher_shalenov.py new file mode 100644 index 00000000..3562276d --- /dev/null +++ b/Week02/types_alisher_shalenov.py @@ -0,0 +1,4 @@ +my_int = 10 +my_float = 3.14 +my_bool = True +my_complex = 2 + 5j From a4fca2766a14b7d412fa662ce453241c6457c0e6 Mon Sep 17 00:00:00 2001 From: Alisher Shalenov Date: Wed, 3 Jun 2026 16:31:45 +0300 Subject: [PATCH 4/8] Create pyramid_alisher_shalenov.py --- Week03/pyramid_alisher_shalenov.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Week03/pyramid_alisher_shalenov.py diff --git a/Week03/pyramid_alisher_shalenov.py b/Week03/pyramid_alisher_shalenov.py new file mode 100644 index 00000000..0f1c5457 --- /dev/null +++ b/Week03/pyramid_alisher_shalenov.py @@ -0,0 +1,10 @@ +def calculate_pyramid_height(blocks): + height = 0 + layer = 1 + + while blocks >= layer: + blocks -= layer + height += 1 + layer += 1 + + return height From e7681a6014238dc8529c5dc61166a167c9e56d9d Mon Sep 17 00:00:00 2001 From: Alisher Shalenov Date: Wed, 3 Jun 2026 16:39:37 +0300 Subject: [PATCH 5/8] Create decorators_alisher_shalenov.py --- Week04/decorators_alisher_shalenov.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Week04/decorators_alisher_shalenov.py diff --git a/Week04/decorators_alisher_shalenov.py b/Week04/decorators_alisher_shalenov.py new file mode 100644 index 00000000..af105b1f --- /dev/null +++ b/Week04/decorators_alisher_shalenov.py @@ -0,0 +1,27 @@ +import time +import tracemalloc + +def performance(fn): + if not hasattr(performance, "counter"): + performance.counter = 0 + performance.total_time = 0 + performance.total_mem = 0 + + def wrapper(*args, **kwargs): + performance.counter += 1 + + tracemalloc.start() + start_time = time.time() + + result = fn(*args, **kwargs) + + end_time = time.time() + current, peak = tracemalloc.get_traced_memory() + tracemalloc.stop() + + performance.total_time += (end_time - start_time) + performance.total_mem += peak + + return result + + return wrapper From dd5421c111801df9f5502634785855e8f000ea37 Mon Sep 17 00:00:00 2001 From: Alisher Shalenov Date: Wed, 3 Jun 2026 16:42:49 +0300 Subject: [PATCH 6/8] Create awaitme_alisher_shalenov.py --- Week05/awaitme_alisher_shalenov.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Week05/awaitme_alisher_shalenov.py diff --git a/Week05/awaitme_alisher_shalenov.py b/Week05/awaitme_alisher_shalenov.py new file mode 100644 index 00000000..40a753ac --- /dev/null +++ b/Week05/awaitme_alisher_shalenov.py @@ -0,0 +1,12 @@ +import asyncio + +def awaitme(fn): + async def wrapper(*args, **kwargs): + res = fn(*args, **kwargs) + + if asyncio.iscoroutine(res): + res = await res + + return res + + return wrapper From c9ae61ca598f2fe50cbda166c89ab00c3cc26973 Mon Sep 17 00:00:00 2001 From: Bora Canbula Date: Thu, 4 Jun 2026 21:07:34 +0300 Subject: [PATCH 7/8] Delete .gitignore --- .gitignore | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 .gitignore diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 8c75de4b..00000000 --- a/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -.idea/ -__pycache__/ -*.pyc \ No newline at end of file From 300b3defe140301522a13f7e78e52d981683b497 Mon Sep 17 00:00:00 2001 From: Bora Canbula Date: Thu, 4 Jun 2026 21:15:21 +0300 Subject: [PATCH 8/8] Add comment to calculate_pyramid_height function Added a comment to the calculate_pyramid_height function. --- Week03/pyramid_alisher_shalenov.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Week03/pyramid_alisher_shalenov.py b/Week03/pyramid_alisher_shalenov.py index 0f1c5457..0b8612b8 100644 --- a/Week03/pyramid_alisher_shalenov.py +++ b/Week03/pyramid_alisher_shalenov.py @@ -1,4 +1,4 @@ -def calculate_pyramid_height(blocks): +def calculate_pyramid_height(blocks): # asd height = 0 layer = 1