arr = [1, 2, 3, 4, 5]
for i in arr:
print(i)
1
2
3
4
5
arr
` containing five elements. We then use a `for
` loop to iterate over all the elements of the array. i
` takes on the value of each element in turn, and we print it to the console using the `print()
` function.