We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c7e76ee + 482ccad commit 47b60e1Copy full SHA for 47b60e1
Week03/pyramid_ozge_goksu.py
@@ -0,0 +1,6 @@
1
+def calculate_pyramid_height(number_of_blocks):
2
+ height = 0
3
+ while number_of_blocks >= height + 1:
4
+ height += 1
5
+ number_of_blocks -= height
6
+ return height
0 commit comments