for in array com phyton code example
Example 1: for element in array python
itemlist = []
for j in range(len(myarray)):
item = myarray[j]
itemlist.append(item)
Example 2: how to create an array in python
array = ["1st", "2nd", "3rd"]
#prints: ['1st', '2nd', '3rd']
array.append("4th")
#prints: ['1st', '2nd', '3rd', '4th']