diff --git a/Week03/pyramid_kerem_ozakca.py b/Week03/pyramid_kerem_ozakca.py new file mode 100644 index 00000000..f8fda7d5 --- /dev/null +++ b/Week03/pyramid_kerem_ozakca.py @@ -0,0 +1,8 @@ +def calculate_pyramid_height(blocks): + current_height = 0 + + while blocks > current_height: + current_height += 1 + blocks -= current_height + + return current_height