We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1e3aa32 + 0dbcb98 commit 9f867a8Copy full SHA for 9f867a8
Week03/pyramid_umut_eren_kaplan.py
@@ -0,0 +1,10 @@
1
+def calculate_pyramid_height(number_of_blocks):
2
+ height = 0
3
+ usedblocks = 0
4
+
5
+ while usedblocks < number_of_blocks:
6
+ usedblocks +=1
7
+ height+=1
8
+ number_of_blocks -=height
9
10
+ return height
0 commit comments