From e5a9323292d49cd0e0907e281ed60b227a96b2af Mon Sep 17 00:00:00 2001 From: TheTosS Date: Sun, 20 Apr 2025 20:58:13 +0200 Subject: [PATCH] Update 02_task_symbols.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * <------- как сделать одит символ ?? * * * * * * * <------ ??? --- Lesson20/pactice/part01/02_task_symbols.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Lesson20/pactice/part01/02_task_symbols.md b/Lesson20/pactice/part01/02_task_symbols.md index 7df8017..32422cd 100644 --- a/Lesson20/pactice/part01/02_task_symbols.md +++ b/Lesson20/pactice/part01/02_task_symbols.md @@ -33,6 +33,17 @@ side = 2 ``` ### Решение задачи -```python + # TODO: you code here... -``` \ No newline at end of file +side = int(input("side :")) + +if 2 <= side <= 15: + for i in range(side): + print(" " * (side - i - 1) + "+" + " " * (i * 2) + "+") + for i in range(side - 2, -1, -1): + print(" " * (side - i - 1) + "+" + " " * (i * 2) + "+") + + + +else: + print("side должна быть от 3 до 14.")