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