From 18edce3c61e50e1bcb1a242c7bf7337b20b5d978 Mon Sep 17 00:00:00 2001 From: furkanustuncan <87567493+furkanustuncan@users.noreply.github.com> Date: Fri, 6 Nov 2026 12:03:06 +0300 Subject: [PATCH] Create pyramid_furkan_ustuncan.py --- Week03/pyramid_furkan_ustuncan.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Week03/pyramid_furkan_ustuncan.py diff --git a/Week03/pyramid_furkan_ustuncan.py b/Week03/pyramid_furkan_ustuncan.py new file mode 100644 index 00000000..7322de28 --- /dev/null +++ b/Week03/pyramid_furkan_ustuncan.py @@ -0,0 +1,6 @@ +def calculate_pyramid_height(number_of_blocks): + height = 0 + while number_of_blocks >= height + 1: + height += 1 + number_of_blocks -= height + return height