Using the below Python code, Write a code snippet to index all the values of an array. However, you cannot use any built-in functions or libraries.

arr = [3, 8, 2, 5, 1]
arr = [3, 8, 2, 5, 1]

for i in range(len(arr)):
    print("arr[{}] = {}".format(i, arr[i]))