i have this list of asterisks, and i want to print it this way:

list = ['* *', '*', '* * *', '* * * * *', '* * * * * *', '* * * *']
for i in list:
 print i
so here, the output is:

* *
*
* * *
* * * * *
* * * * * *
* * * *
but what do i do if i want the output to be vertical, like this:

* * * * * *
* * * * *
 * * * *
 * * *
 * * 
 * 

please provide me with the code that will print it vertically.
how do i print this list vertically?
you can try the following code:

mylist = ['* *', '*', '* * *', '* * * * *', '* * * * * *', '* * * *']
import itertools
for i in itertools.izip\_longest(*mylist, fillvalue=" "):
 if any(j != " " for j in i):
 print " ".join(i)
 

this will give the following output

* * * * * *
* * * * *
 * * * *
 * * *
 * * 
 *