0

I have a list of string elements and what I want to do is to turn each element into a variable whose name is the string.

brands = ['Sony','Samsung','Apple','Panasonic','Sennheiser','LG','AudioTechnica','Acer','Verizon']

I want to create new variables Sony, Samsung, Apple, etc. which will be empty lists []. How can I go about doing this?

parkjw96
  • 27
  • 3

0 Answers0