EDIT I will try to clarify this question. I want to make two csv files. One with the text "Greetings", the other with the text "Greetings earth". The problem is I can't find a way to ask python to write to multiple files with one write command. I am trying to find a way to make things more efficient.
This question was identified as a possible duplicate of this. write multiple files at a time but there are a lot more parts to that question that I don't understand. I am trying to isolate this problem in as simple a question as I can.
hello = open("hello.csv","w")
world = open("world.csv","w")
everything = ['hello','world']
half = ['world']
everything.write("Greetings")
half.write("Earth")
hello.close()
world.close()