Assume I have a "constant" like:
ITEMS = [ "item1", "item2" ]
Now I would like to create an array that contains all entries of ITEMS, plus some more.
Obviously, this is wrong:
more_things = [ "all", ITEMS ]
as it would put the whole array into the new array. But I want the new array to contain [ "all", "item1", "item2" ] in the end.
Sure, I could somehow iterate the first array, but I am wondering if there is a more idiomatic one liner way to do this. Ideally, it should work for python2 and python3.