From 7dbf1b25314a0e26638f0f0c82e4e9c4fde04194 Mon Sep 17 00:00:00 2001 From: avcigoktugier Date: Fri, 6 Mar 2026 06:16:58 +0300 Subject: [PATCH 1/8] Add files via upload --- Week01/info_Recepgoktug_Avci.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Week01/info_Recepgoktug_Avci.py diff --git a/Week01/info_Recepgoktug_Avci.py b/Week01/info_Recepgoktug_Avci.py new file mode 100644 index 00000000..09648bbd --- /dev/null +++ b/Week01/info_Recepgoktug_Avci.py @@ -0,0 +1,2 @@ +student_id = "220316021" +full_name = "Recep Göktuğ Avcı" \ No newline at end of file From ac219c1820f7d4ffd85ea300914f4f77f1e3eb14 Mon Sep 17 00:00:00 2001 From: avcigoktugier Date: Fri, 6 Mar 2026 06:32:53 +0300 Subject: [PATCH 2/8] Add files via upload --- Week02/types_Recepgoktug_Avci.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Week02/types_Recepgoktug_Avci.py diff --git a/Week02/types_Recepgoktug_Avci.py b/Week02/types_Recepgoktug_Avci.py new file mode 100644 index 00000000..37246c15 --- /dev/null +++ b/Week02/types_Recepgoktug_Avci.py @@ -0,0 +1,4 @@ +my_int = 23 +my_float = 19.07 +my_bool = True +my_complex = 3+4j \ No newline at end of file From 539f13afe6ca355f83e6108142e42d9164c2c2e4 Mon Sep 17 00:00:00 2001 From: avcigoktugier Date: Fri, 6 Mar 2026 06:54:06 +0300 Subject: [PATCH 3/8] Create types_Recepgoktug_Avci --- Week02/types_Recepgoktug_Avci | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Week02/types_Recepgoktug_Avci diff --git a/Week02/types_Recepgoktug_Avci b/Week02/types_Recepgoktug_Avci new file mode 100644 index 00000000..58267db2 --- /dev/null +++ b/Week02/types_Recepgoktug_Avci @@ -0,0 +1,2 @@ +student_id = "220316021" +full_name = "Recep Göktuğ Avcı" From 521a42fc07ee00abb11e26cd404f128900b657cb Mon Sep 17 00:00:00 2001 From: avcigoktugier Date: Fri, 6 Mar 2026 06:55:19 +0300 Subject: [PATCH 4/8] Delete Week02/types_Recepgoktug_Avci --- Week02/types_Recepgoktug_Avci | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 Week02/types_Recepgoktug_Avci diff --git a/Week02/types_Recepgoktug_Avci b/Week02/types_Recepgoktug_Avci deleted file mode 100644 index 58267db2..00000000 --- a/Week02/types_Recepgoktug_Avci +++ /dev/null @@ -1,2 +0,0 @@ -student_id = "220316021" -full_name = "Recep Göktuğ Avcı" From 49e2b69f45c08f779563d150508deab4d85e7369 Mon Sep 17 00:00:00 2001 From: avcigoktugier Date: Fri, 6 Mar 2026 06:58:36 +0300 Subject: [PATCH 5/8] Update and rename types_Recepgoktug_Avci.py to types_recepgoktug_avci.py --- Week02/{types_Recepgoktug_Avci.py => types_recepgoktug_avci.py} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename Week02/{types_Recepgoktug_Avci.py => types_recepgoktug_avci.py} (66%) diff --git a/Week02/types_Recepgoktug_Avci.py b/Week02/types_recepgoktug_avci.py similarity index 66% rename from Week02/types_Recepgoktug_Avci.py rename to Week02/types_recepgoktug_avci.py index 37246c15..a2d5e485 100644 --- a/Week02/types_Recepgoktug_Avci.py +++ b/Week02/types_recepgoktug_avci.py @@ -1,4 +1,4 @@ my_int = 23 my_float = 19.07 my_bool = True -my_complex = 3+4j \ No newline at end of file +my_complex = 3+4j From 092e75e865ff708f49f5ba27bfad58056f617251 Mon Sep 17 00:00:00 2001 From: avcigoktugier Date: Fri, 6 Mar 2026 06:58:53 +0300 Subject: [PATCH 6/8] Update and rename info_Recepgoktug_Avci.py to info_recepgoktug_avci.py --- Week01/info_Recepgoktug_Avci.py | 2 -- Week01/info_recepgoktug_avci.py | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 Week01/info_Recepgoktug_Avci.py create mode 100644 Week01/info_recepgoktug_avci.py diff --git a/Week01/info_Recepgoktug_Avci.py b/Week01/info_Recepgoktug_Avci.py deleted file mode 100644 index 09648bbd..00000000 --- a/Week01/info_Recepgoktug_Avci.py +++ /dev/null @@ -1,2 +0,0 @@ -student_id = "220316021" -full_name = "Recep Göktuğ Avcı" \ No newline at end of file diff --git a/Week01/info_recepgoktug_avci.py b/Week01/info_recepgoktug_avci.py new file mode 100644 index 00000000..82ce89d0 --- /dev/null +++ b/Week01/info_recepgoktug_avci.py @@ -0,0 +1,2 @@ +student_id = "220316021" +full_name = "Recep Göktuğ Avcı" From 85d0047eac7d2e7ea77f439ff736ec2d6b22df7f Mon Sep 17 00:00:00 2001 From: avcigoktugier Date: Fri, 6 Mar 2026 07:18:59 +0300 Subject: [PATCH 7/8] Add files via upload --- Week03/pyramid_recepgoktug_avci.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Week03/pyramid_recepgoktug_avci.py diff --git a/Week03/pyramid_recepgoktug_avci.py b/Week03/pyramid_recepgoktug_avci.py new file mode 100644 index 00000000..b8e13e5e --- /dev/null +++ b/Week03/pyramid_recepgoktug_avci.py @@ -0,0 +1,11 @@ +def calculate_pyramid_height(number_of_blocks): + height = 0 + current_layer_blocks = 1 + + while number_of_blocks >= current_layer_blocks: + number_of_blocks -= current_layer_blocks + height += 1 + current_layer_blocks += 1 + + return height + From ba1bfa9228c424d8b32237464380e3475d88b809 Mon Sep 17 00:00:00 2001 From: avcigoktugier Date: Fri, 6 Mar 2026 07:19:17 +0300 Subject: [PATCH 8/8] Add files via upload --- Week03/sequences_recepgoktug_avci.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Week03/sequences_recepgoktug_avci.py diff --git a/Week03/sequences_recepgoktug_avci.py b/Week03/sequences_recepgoktug_avci.py new file mode 100644 index 00000000..5ce2718d --- /dev/null +++ b/Week03/sequences_recepgoktug_avci.py @@ -0,0 +1,15 @@ +def remove_duplicates(seq: list) -> list: + + return list(set(seq)) + +def list_counts(seq: list) -> dict: + + counts = {} + for item in seq: + + counts[item] = counts.get(item, 0) + 1 + return counts + +def reverse_dict(d: dict) -> dict: + + return {value: key for key, value in d.items()}