4
have the following list:
[['a:/, b:/, w:/, g:/, f:/, d:/Downloads/Torrent/End, x:/files.2t, y:/files.1t'], ['d:/Dropbox/project/rato_bat'], ['data']]
however I would like it to be a list within another list so I did:
for a in lldir:
for b in a:
b = b.split(', ')
it would be possible to do this on a line and assign to a variable?
You want to produce a list only from all other lists inside?
– Leonel Sanches da Silva
this list already has a list inside it only that this list is being formed by a single string that I would like to be divided into multiple items using the ", " (comma and space) of the string.
– Nasca
Voce has had the same kind of questions since yesterday - if you’re not already doing this, I suggest fortemten that you try a little with examples of the data that Voce has at hand in the interactive Python prompt (as you are in Windows, use the
idle
) - you have a case where we can give you hundreds of examples, and they can work on time, but nothing will be so clear to you to think about it in interactive mode.– jsbueno