Get Last List Element in Python

Retrieve the final element from a list using Python.

The task challenges you to get acquainted with list indexing in Python by retrieving the last item from a list. This demands understanding of the concept of negative indices. Your task is to implement the function `get_last_item(lst)`, which accepts a non-empty list `lst` and returns its last element. ### Parameters - `lst` (list): A list of elements. It is assumed that the list is non-empty. ### Return Value - Returns the last element in the list `lst`. ### Examples ```python # The last element in the list is 1 assert get_last_item([1]) == 1 # The last element in the list is 2 assert get_last_item([1, 2]) == 2 # The last element in the list is 3 assert get_last_item([1, 2, 3]) == 3 # The last element in the list is 'hello' assert get_last_item(['hello']) == 'hello' ```