diff --git a/Week01/info_rukiye_ilhan.py b/Week01/info_rukiye_ilhan.py new file mode 100644 index 00000000..c54f8c59 --- /dev/null +++ b/Week01/info_rukiye_ilhan.py @@ -0,0 +1,2 @@ +student_id="210315038" +full_name="Rukiye İlhan" diff --git a/Week02/types_rukiye_ilhan.py b/Week02/types_rukiye_ilhan.py new file mode 100644 index 00000000..8a25367b --- /dev/null +++ b/Week02/types_rukiye_ilhan.py @@ -0,0 +1,4 @@ +my_int = 7 +my_float = 7.7 +my_bool = False +my_complex = 7j \ No newline at end of file diff --git a/Week03/pyramid_rukiye_ilhan.py b/Week03/pyramid_rukiye_ilhan.py new file mode 100644 index 00000000..97efe0d0 --- /dev/null +++ b/Week03/pyramid_rukiye_ilhan.py @@ -0,0 +1,7 @@ +def calculate_pyramid_height(number_of_blocks): + used_block = 0 + height = 0 + while(number_of_blocks - used_block > height): + height = height + 1 + used_block = (height*(height + 1)//2) + return height