Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

python help if you please

Name: Anonymous 2011-10-17 16:19

So I have a project that is requiring me to use lines and the split command.

Basically we input a file, go line by line, splitting each line which is fine but then I want to put the results of each index into a list.

So it looks something like
>for line in fileDescriptor:
   my_line=line.split()
how would I go about naming using a for loop, so I don't have to do something like
   y1+=my_list[1]
   y2+=my_list[2]
etc etc

Name: noko 2011-10-17 17:59

noko

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List