[Tutor] priting keys and its values of a dictionary in a single row

Andreas Kostyrka andreas at kostyrka.org
Sat Apr 28 13:00:30 CEST 2007


* Rohan Deshpande <rohan.deshpande at gmail.com> [070428 12:58]:
That assumes he wants to output all elements.

Andreas

>    Or, get rid of the extra variable and do:
> 
>    for i in m.items():
>      print i[0] + ',' + ",".join(i[1])
> 
>    On 4/27/07, Bill Burns < [1]billburns at pennswoods.net> wrote:


More information about the Tutor mailing list