-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
  • 52,115
  • 13
  • 74
  • 94
user2966197
  • 2,565
  • 10
  • 36
  • 69
  • 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
  • 976
  • 3
  • 11
  • 18