sorry i forgot to add in the code for my tuple which is at the very end tuple = (food+ drink + "\n") data.append(tuple) f = open("froogle.sql", 'a') f.write ( ''.join( tuple )