10
Hello I’m starting to program in python
and I’m having a hard time doing an exercise where I have to do 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. Someone can help me?
The rectangle must be filled from the inside. For example: Width = 2 height = 2 should go like this:
##
##
The rectangle must be filled inside. For example:
Width =2
height = 2
should come out like this:
"##"
"##"
Angelo for the rectangle to be filled in my first example or @Luizviera already do that
– Miguel