diff --git a/lesson_1_task_1.py b/lesson_1_task_1.py new file mode 100644 index 0000000..00fc27a --- /dev/null +++ b/lesson_1_task_1.py @@ -0,0 +1,2 @@ +my_name = "Наталья" +print(my_name) \ No newline at end of file diff --git a/lesson_1_task_2.py b/lesson_1_task_2.py new file mode 100644 index 0000000..8ffa282 --- /dev/null +++ b/lesson_1_task_2.py @@ -0,0 +1,5 @@ +my_age = 33 +print(my_age) + +my_age = 36 +print(my_age) diff --git a/lesson_1_task_3.py b/lesson_1_task_3.py new file mode 100644 index 0000000..39f59e2 --- /dev/null +++ b/lesson_1_task_3.py @@ -0,0 +1,3 @@ +first_name = input() +last_name = input() +print("Вас зовут:", first_name, last_name) \ No newline at end of file diff --git a/lesson_1_task_4.py b/lesson_1_task_4.py new file mode 100644 index 0000000..43e6c95 --- /dev/null +++ b/lesson_1_task_4.py @@ -0,0 +1,4 @@ +def print_greeting(): + print("Привет, мир!") + +print_greeting() \ No newline at end of file diff --git a/lesson_1_task_5.py b/lesson_1_task_5.py new file mode 100644 index 0000000..94ebe13 --- /dev/null +++ b/lesson_1_task_5.py @@ -0,0 +1,14 @@ +def print_num (num): + print(num, end='') + +print_num(8) +print_num(8) +print_num(0) +print_num(0) +print_num(5) +print_num(5) +print_num(5) +print_num(3) +print_num(5) +print_num(3) +print_num(5) \ No newline at end of file