human
access last element numpy.
assistant
Here is a Python function to access the last element numpy

import numpy as np

def last(x):
    """Return the last element of numpy array"""
    return x[-1]

# Enter the numpy array
array = np.arange(10)

# Calling the function
print((last(array)))

#Example Output
# 9

#Remember to inspect code for bugs.