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.")