diff --git a/Week01/info_ugur_kurt.py b/Week01/info_ugur_kurt.py new file mode 100644 index 00000000..3a685f7c --- /dev/null +++ b/Week01/info_ugur_kurt.py @@ -0,0 +1,2 @@ +student_id = "220315033" +full_name = "Uğur KURT" diff --git a/Week02/types_ugur_kurt.py b/Week02/types_ugur_kurt.py new file mode 100644 index 00000000..05e2bb9f --- /dev/null +++ b/Week02/types_ugur_kurt.py @@ -0,0 +1,4 @@ +my_int = 28 +my_float = 2.8 +my_bool = True +my_complex = 16j diff --git a/Week03/pyramid_ugur_kurt.py b/Week03/pyramid_ugur_kurt.py new file mode 100644 index 00000000..5b352e56 --- /dev/null +++ b/Week03/pyramid_ugur_kurt.py @@ -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