Is it possible to create a variable in which I can store a list of products instead of using "lines" variable. when creating a text file
#creating a textfile
text_file= open("productlist.txt", "w")
lines = ("Bed","\n","Couch","\n","Mirror","\n","Television","\n"
"Tables","\n","Radio")
text_file.writelines(lines)
text_file.close()
text_file = open("productlist.txt")
print(text_file.read())
text_file.close()