We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d40867 commit 55f1973Copy full SHA for 55f1973
Week03/pyramid_burak_sartik.py
@@ -0,0 +1,6 @@
1
+def calculate_pyramid_height(number_of_blocks):
2
+ height = 0
3
+ while number_of_blocks > height:
4
+ height += 1
5
+ number_of_blocks -= height
6
+ return height
0 commit comments