From 55f1973b68af13aa0d47161e53277de72551d3aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Sart=C4=B1k?= Date: Wed, 11 Mar 2026 14:52:43 +0300 Subject: [PATCH] Create pyramid_burak_sartik.py --- Week03/pyramid_burak_sartik.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Week03/pyramid_burak_sartik.py diff --git a/Week03/pyramid_burak_sartik.py b/Week03/pyramid_burak_sartik.py new file mode 100644 index 00000000..da898937 --- /dev/null +++ b/Week03/pyramid_burak_sartik.py @@ -0,0 +1,6 @@ +def calculate_pyramid_height(number_of_blocks): + height = 0 + while number_of_blocks > height: + height += 1 + number_of_blocks -= height + return height