xxxxxxxxxx
list = [1, 3, 5, 7, 9]
# with index
for index, item in enumerate(list):
print (item, " at index ", index)
xxxxxxxxxx
list = [1, 3, 5, 7, 9]
# with index
for index, item in enumerate(list):
print (item, " at index ", index)
# without index
for item in list:
print(item)
xxxxxxxxxx
List<int> list = new List<int> { 1, 2, 3, 4, 5 };
//For Loop
for (int i = 0; i < list.Count(); i++)
{ Console.WriteLine(list[i]); }
//For Each Loop
foreach (int item in list)
{ Console.WriteLine(item); }
xxxxxxxxxx
for i in range(len(Latitudes)):
Lat,Long=(Latitudes[i],Longitudes[i])