We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 85ff317 + 55f1973 commit fc3fc0fCopy full SHA for fc3fc0f
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