Hi!
I'm not sure if i need lamda, or something else. But still, i need following:
I have an array = [1,2,3,4,5]
I need to put this array, for instance, into another array. But write it all in one line.
for item in array:
array2.append (item)
I know that this is completely possible to iterate through the items and make it one-line. But googling and reading manuals didn't help me that much... if you can just give me a hint or name this thing so that i could find what that is, i would really appreciate it.
Python geeks, pls help)
UPD: let's say this: array2 = SOME FANCY EXPRESSION THAT IS GOING TO GET ALL THE DATA FROM THE FIRST ONE
(example is NOT real. i'm just trying to iterate through different chunks of data, but that's the best i could come up with)