Skip to content

Commit b5c200e

Browse files
week 3 hw pyramid
1 parent 622a660 commit b5c200e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎Week03/pyramid_hilmican_karadag.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
def calculate_pyramid_height(number_of_blocks):
2+
3+
height = 1
4+
5+
while number_of_blocks >= x:
6+
7+
number_of_blocks = number_of_blocks - x
8+
9+
height = height + 1
10+
11+
return height

0 commit comments

Comments
 (0)