Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Week01/info_ugur_kurt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
student_id = "220315033"
full_name = "Uğur KURT"
4 changes: 4 additions & 0 deletions Week02/types_ugur_kurt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
my_int = 28
my_float = 2.8
my_bool = True
my_complex = 16j
11 changes: 11 additions & 0 deletions Week03/pyramid_ugur_kurt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
def calculate_pyramid_height(number_of_blocks):
height = 0
layer_blocks = 1


while number_of_blocks >= layer_blocks:
number_of_blocks -= layer_blocks
height += 1
layer_blocks += 1

return height