# Is there a way to get all elements from an array except the last one? Something like arr[:-1] in python