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 csv
file. 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 looked here in the forum and google, even if I found some similar tips, I did not succeed.