From 200fe8f83d2524e9fdc911457d5b71f6b45cde51 Mon Sep 17 00:00:00 2001 From: TheTosS Date: Sun, 20 Apr 2025 20:25:41 +0200 Subject: [PATCH] Update 03_task_symbols.md --- Lesson20/pactice/part01/03_task_symbols.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Lesson20/pactice/part01/03_task_symbols.md b/Lesson20/pactice/part01/03_task_symbols.md index 09eb667..010f520 100644 --- a/Lesson20/pactice/part01/03_task_symbols.md +++ b/Lesson20/pactice/part01/03_task_symbols.md @@ -29,6 +29,13 @@ height = 3 ``` ### Решение задачи -```python -# TODO: you code here... -``` \ No newline at end of file + +height = int(input("Height: ")) +if 2 <= height <= 15: + for i in range(height): + print(" " * (height - i - 1) + "/" + " " * (i * 2) + "\\") + print("_" * (height * 2)) +else: + print("Высота должна быть от 2 до 15.") + +```