The only user input is the array itself, the first element of the slice and the last element of the slice?
I.e.
def slicing_array(array, first_element, last_el