how to print array with for in python code example Example: python print an array a = [1,2,3,4,5] print(a)