arr = [2,3,4,5,6,7,8,9]
for i in range(0,len(arr)):
    print(arr[i])

#here the array elements are printed line by line

for i in range(0,len(arr)):
    print(arr[i],end = " , ")

#here the array elements in the second for are printed with commas seperated.