From e05b75c30ddb52bb8acdb7bef4a62df6ca39f073 Mon Sep 17 00:00:00 2001 From: Burakhan7 <141933959+Burakhan7@users.noreply.github.com> Date: Fri, 3 Apr 2026 00:41:01 +0300 Subject: [PATCH] Create pyramid_burakhan_gultoplar.py --- Week03/pyramid_burakhan_gultoplar.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Week03/pyramid_burakhan_gultoplar.py diff --git a/Week03/pyramid_burakhan_gultoplar.py b/Week03/pyramid_burakhan_gultoplar.py new file mode 100644 index 00000000..0fd9640c --- /dev/null +++ b/Week03/pyramid_burakhan_gultoplar.py @@ -0,0 +1,6 @@ +def calculate_pyramid_height(blocks): + height = 0 + while(blocks >= 0): + height += 1 + blocks -= height + return height - 1