indentation messing up my tuple?

infidel saint.infidel at gmail.com
Tue Jan 31 18:05:55 CET 2006


tuple is the name of the built-in type, so it's not a very good idea to
reassign it to something else.

(food + drink + '\n') is not a tuple, (food + drink + '\n',) is

There's no reason to use tuples here, just do this:

data.append(food + drink)
f.write('\n'.join(data))




More information about the Python-list mailing list