Skip to content

Commit 631e6a6

Browse files
authored
Update pyramid_ugur_kurt.py
1 parent 475664a commit 631e6a6

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎Week03/pyramid_ugur_kurt.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
def calculate_pyramid_height(number_of_blocks):
22
height = 0
33
block_needed = 1
4-
5-
64
while number_of_blocks >= block_needed:
75
block_needed += 1
86
height += 1
9-
number_of_blocks -= block_needed
10-
7+
number_of_blocks -= block_needed
118
return height

0 commit comments

Comments
 (0)