[Tutor] Tutor Digest, Vol 102, Issue 98
Don Jennings
dfjennings at gmail.com
Fri Aug 31 02:41:02 CEST 2012
On Aug 30, 2012, at 8:15 PM, tutor-request at python.org wrote:
> Message: 6
> Date: Fri, 31 Aug 2012 00:15:41 +0000
> From: Ashley Fowler <afowler2 at broncos.uncfsu.edu>
> To: "tutor at python.org" <tutor at python.org>
> Subject: [Tutor] Printing a list as a column
> Message-ID:
> <6962C976AE76AC4298CBF6FD6D0C63561F37C8BD at BL2PRD0710MB363.namprd07.prod.outlook.com>
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Does anyone know how to print a list in a form of a column instead of a row?
Please give an example of what you mean here. For example, you might want to see:
['a',
'b',
'c',
'd',
'e']
My guess is that what you want is for the list ['a', 'b', 'c', 'd', 'e'] to print out as:
a
b
c
d
e
Yes? Are you familiar with the join method of strings? Try it out. If you have trouble, let us know :>)
Take care,
Don
More information about the Tutor
mailing list