human
get nth element of array.
assistant
Here is a Python function to get the nth element of an array

import collections

def get_nth_element(array, n):
  """Get nth element of array."""
  return array[n]

# Enter the array
array = [1, 2, 3, 4, 5]

# Calling the function
print((get_nth_element(array, 2)))

#Example Output
# 3

#Remember to inspect code for bugs.