python iterating through a list

46

colors = ["red", "green", "blue", "purple"]
i = 0
while i < len(colors):
    print(colors[i])
    i += 1
for i in range(len(Latitudes)):
    Lat,Long=(Latitudes[i],Longitudes[i])
lst = [10, 50, 75, 83, 98, 84, 32] 
 
res = list(map(lambda x:x, lst))
 
print(res) 

Comments

Submit
0 Comments