
Patrick B. answered 08/22/21
Math and computer tutor/teacher
print is a built in function... so how are we supposed to print it?
here.,..
def print_array( a , n):
if (n>=0):
print_array(a,n-1)
print(str(a[n]) + " at index " + str(n))
###############################
a = []
a.append("12")
a.append("16")
a.append("18")
a.append("20")
#you have to pass ONE LESS than the length of the array
print_array(a,len(a)-1)