-1

I just want to print a symbol a certain amount of times vertically.

def draw_symbol():
        print()
        symbol = ""
        for num in range(8):
            symbol += "*"        
        print(symbol)
        return

    draw_row()

The output is "*******" but it is supposed to be vertical.

Random Davis
  • 6,662
  • 4
  • 14
  • 24
Seeta
  • 13
  • 1

1 Answers1

0
def draw_symbol():
    for num in range(8):
        print("*")
    return
draw_symbol()

would result in:

*
*
*
*
*
*
*
*