Hello, I'm starting to program in python
and I'm having a hard time doing an exercise in which I have to make a rectangle with "#".
largura = int(input("Digite a largura: "))
altura = int(input("Digite a altura: "))
while largura > 0:
print("#", end = "")
while altura > 0 :
altura = altura - 1
largura = largura - 1
However, I can make the width but not the height. Can anyone help me?
The rectangle must be filled inside. For example: Width = 2 height = 2 should look like this:
##
##
The rectangle must be filled in. For example:
Width = 2
height = 2
should look like this:
"##"
"##"