Let's have, for instance:
nodes = [[1, 2],[3, 4]]
thelist = [[5, 6], [7, 8]]
How do I code it so list will be:
[[1, 2],[3, 4],[5, 6],[7, 8]]
I know how to do it, but I want an elegant python way.
My try:
for node in nodes:
thelist.insert(0, node)
I guess there should be a more pythonic way to do that.
EDIT: The order somehow matters (that's why I try to insert at index 0).