def create(): A = {} n = int(input("\n enter the number of elements: ")) print("\n") for i in range(n): print("enter data at ", i, end = ":") A[i] = int(input()) return A def display(A): for i in range(len(A)): print("A[", i, "] = ", A[i]) def access(A, i): if 0 <= i <= len(A): print("the element at position", i, " is ", A[i]) else: print("the index is larger than the size of the array") Arr = create() print("\nthe element in the array is") display(Arr) print("\n -- data at location --") i = int(input("element at which position element to get")) access(Arr, i)