From e7eb7656d62720e9c12ac4e86c949cb84543d8ce Mon Sep 17 00:00:00 2001 From: Tusa05 Date: Sun, 14 Sep 2025 16:19:21 +0300 Subject: [PATCH] lesson_1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit урок --- lesson_1_task_1.py | 2 ++ lesson_1_task_2.py | 5 +++++ lesson_1_task_3.py | 3 +++ lesson_1_task_4.py | 4 ++++ lesson_1_task_5.py | 14 ++++++++++++++ 5 files changed, 28 insertions(+) create mode 100644 lesson_1_task_1.py create mode 100644 lesson_1_task_2.py create mode 100644 lesson_1_task_3.py create mode 100644 lesson_1_task_4.py create mode 100644 lesson_1_task_5.py 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