From e233f559da8432d73781f25cd09b8ae0eaebe948 Mon Sep 17 00:00:00 2001 From: sas5188 <148003648+sas5188@users.noreply.github.com> Date: Sun, 17 May 2026 18:48:50 +0300 Subject: [PATCH] Create pyramid_murad_maharramli.py --- Week03/pyramid_murad_maharramli.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Week03/pyramid_murad_maharramli.py diff --git a/Week03/pyramid_murad_maharramli.py b/Week03/pyramid_murad_maharramli.py new file mode 100644 index 00000000..da898937 --- /dev/null +++ b/Week03/pyramid_murad_maharramli.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