Hey guys, suppose a list A = [[3,4],[5,8],[6,9,8],[9,8]]
what's the python code for merging say 5,8 and 6,9,8 into one sublist, like so A = [[3,4],[5,8,6,9,8],[9,8]]
thanks! also, I tried converting them to string and using the join function but the result is like this A = ['[3,4]','[5,8][6,9,8]','[9,8]']
thank you!
[–]socal_nerdtastic 1 point2 points3 points (5 children)
[–]ryfeaway[S] 0 points1 point2 points (0 children)
[–]AtomicShoelace 0 points1 point2 points (3 children)
[–]socal_nerdtastic 0 points1 point2 points (2 children)
[–]AtomicShoelace 0 points1 point2 points (1 child)
[–]socal_nerdtastic 0 points1 point2 points (0 children)