Can't figure out how to print * and spaces vertically and not hoirzontally
I tried looking at other threads but still couldn't figure it out.
I am using this code:
numbers = [5,1,5,2,4]
for i in numbers:
for x in range(0,i):
print "*",
print""
It prints:
* * * * *
*
* * * * *
* *
* * * *
and etc.
I would like it to print:
* * * * * * * * * * * * * * * * *
I understand that I have to use operators if
for spaces or *
Any help is appreciated
+3
source to share