-2
I need to turn an entry into a list.
The entry has the following form:
['[11, 14]', '[8, 17, 18, 24, 29, 37, 44, 49, 51, 55, 62, 63, 64, 76, 82, 84, 93, 97]']
is read from a file csv
. Note that it is composed of two strings
, the first '[11, 14]'
; and the second '[8, 17, 18, 24, 29, 37, 44, 49, 51, 55, 62, 63, 64, 76, 82, 84, 93, 97]'
.
The output I need is a list of integers:
[11, 14, 8, 17, 18, 24, 29, 37, 44, 49, 51, 55, 62, 63, 64, 76, 82, 84, 93, 97]
I searched here on the forum and google, even found some similar tips, I did not succeed.
Very good answer. + 1
– fernandosavio