I have an array like :
input2 = ["Other", "Y", "X", "Z", "Description"]
I want to take off the "Y", "X", "Z", "Description" and store them in a variable but keep them in that order.
Example :
input2 = ["Z", "X", "Y", "Other", "Description"] we should have :
input3 = ["Other"]
some_variable = ["Z", "X", "Y", "Description"]
Thanks for help.
So you can do