1itemlist = []
2for j in range(len(myarray)):
3 item = myarray[j]
4 itemlist.append(item)
1array = ["1st", "2nd", "3rd"]
2#prints: ['1st', '2nd', '3rd']
3array.append("4th")
4#prints: ['1st', '2nd', '3rd', '4th']
1array = [1,2,3,4,5]
2print(array,array[0],array[1],array[2],array[3],array[4]
3
4#Output#
5#[1,2,3,4,5] 1 2 3 4 5
1#create array
2list = [1, 2, 3, 4, 5]
3
4#loop through an array
5for i in list:
6 print(i)