The best solution is probably to use the csv module, as suggested elsewhere. However, to answer your question as indicated:
Option 1: count your way with enumerate ()
for i, value in enumerate(my_list): print value, if i < len(my_list)-1: print ", followed by"
Option 2: process the final value ( my_list[-1] ) outside the loop
for value in my_list[:-1]: print value, ", followed by" print my_list[-1]
Martin stone
source share