-5

I have this below list of tuples in Python:

FINAL ZIPPED LIST = [('http://abc123.com/Kit.docx', 'File 1'), ('http://abc123.com/Kit.docx', 'File 2'),...]

I want to convert this into a list of lists. Something like this:

FINAL ZIPPED LIST = [['http://abc123.com/Kit.docx', 'File 1'], ['http://abc123.com/Kit.docx', 'File 2'],...]

How can I do this?

khelwood
  • 55,782
  • 14
  • 81
  • 108
user2966197
  • 2,793
  • 10
  • 45
  • 77
  • 3
    You should first look for similar questions before asking directly. – Netwave Oct 31 '18 at 13:29
  • 2
    You told us what you want, but what have you done to try to solve the issue? Nothing on Google for 'Python convert tuple to list'? – dfundako Oct 31 '18 at 13:30

1 Answers1

0

Use something like:

new_list = [list(x) for x in FINAL_ZIPPED_LIST]
DatHydroGuy
  • 1,056
  • 3
  • 11
  • 18