Код: Выделить всё
def draw_rectangle(height, width, char):
for h in range(height):
for w in range(width):
print("char", end="")
print()
Подробнее здесь: https://stackoverflow.com/questions/748 ... d-for-loop
Код: Выделить всё
def draw_rectangle(height, width, char):
for h in range(height):
for w in range(width):
print("char", end="")
print()