(25)
a = 2
b = 3
for i in range(5, 10):
a = a + 3 + a
b = b + a - b
print(a + b)
____
---314---
(20)
for x in range(1, 6): print('#', end= '')---#####---
for x in range(6): print('#', end= '')---######---
for x in range(2, 8): print('#', end= '')---######---
for x in range(5, 6): print('#', end= '')---#---
for x in range(6, 6): print('#', end= '')--- ---
for x in range(5, 0, 1): print('#', end= '')--- ---
for x in range(5, 4, -1): print('#', end= '')---#---
for x in range(5, 1, -1): print('#', end= '')---####---
for x in range(1, 4, -1): print('#', end= '')--- ---
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
(25)
a = 2
b = 3
for i in range(5, 10):
a = a + 3 + a
b = b + a - b
print(a + b)
____
---314---
____
(20)
for x in range(1, 6): print('#', end= '')---#####---
for x in range(6): print('#', end= '')---######---
for x in range(2, 8): print('#', end= '')---######---
for x in range(5, 6): print('#', end= '')---#---
for x in range(6, 6): print('#', end= '')--- ---
for x in range(5, 0, 1): print('#', end= '')--- ---
for x in range(5, 4, -1): print('#', end= '')---#---
for x in range(5, 1, -1): print('#', end= '')---####---
for x in range(1, 4, -1): print('#', end= '')--- ---