[[1, 2, 3],
[1, 2, 3],
[1, 2, 3],
[1, 2, 3],
**2**, # <-- HERE
[1, 2, 3],
[1, 2, 3],
[1, 2, 3]]
Here is my current output. If you look at the line above, there is a 2
by itself.
This is the code I used
someList.insert((index), 2)
Is there any way to have that 2
be inside the previous index for ex
[[1, 2, 3],
[1, 2, 3],
[1, 2, 3],
[1, 2, 3],
[1, 2, 3, 2], # <-- HERE
[1, 2, 3],
[1, 2, 3],
[1, 2, 3]]