[Tutor] Print a list in columnar format

Kent Johnson kent_johnson at skillsoft.com
Thu Oct 7 11:48:40 CEST 2004


At 10:46 PM 10/6/2004 -0500, Douglas N. Shawhan wrote:
>    #then put the values into a tuple (less confusing, hopefully)
>    row = (line[0],line[1],line[2],line[3],line[4],\
>            line[5],line[6],line[7],line[8],line[9])

An easier way to do this is with the tuple constructor:
row = tuple(line)

Kent 



More information about the Tutor mailing list