[Tutor] Printing a list as a column

Mark Lawrence breamoreboy at yahoo.co.uk
Fri Aug 31 02:44:47 CEST 2012


On 31/08/2012 01:15, Ashley Fowler wrote:
> Does anyone know how to print a list in a form of a column instead of a row?
>
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>

This simple?

 >>> mylist=range(5)
 >>> for x in mylist:
...     print x
...
0
1
2
3
4

-- 
Cheers.

Mark Lawrence.



More information about the Tutor mailing list