From other posts, I\'ve learned that \'\\n\' signifies a new line when adding to a txt file. I\'m trying to do just this, but I can\'t figure out the right syntax when an attrib
try this:
att_file.write(attribute+"\n")
your code will look like this:
with open("file.txt", "w") as att_file:
for item in list:
att_file.write(item+"\n")
with
should be before for
, else every time you are opening file with write mode, it will omit the
previous write