diff --git a/Week03/pyramid_burak_ozturk.py b/Week03/pyramid_burak_ozturk.py new file mode 100644 index 00000000..8e8abbb5 --- /dev/null +++ b/Week03/pyramid_burak_ozturk.py @@ -0,0 +1,7 @@ +def calculate_pyramid_height(number_of_blocks): + height = 0 + count = 0 + while count <= number_of_blocks: + height += 1 + count += height + return height - 1