areas = [8.09, 7.08, 67.9, 10.33, 8.08]
for x in areas:
print(x)
8.09 7.08 67.9 10.33 8.08
[print(x) for x in areas]
8.09 7.08 67.9 10.33 8.08
[None, None, None, None, None]
for x in range(len(areas)):
print(areas[x])
8.09 7.08 67.9 10.33 8.08
The List Index for this Example is 2 to 4
for x in range(1, 4):
print(areas[x])
7.08 67.9 10.33
The List Index for this Example is 1 and 4
for x in (1,4):
print(areas[x])
7.08 8.08
for x in range(0,5,2):
print(areas[x])
8.09 67.9 8.08
for x,y in enumerate(areas):
print("Index "+str(x)+": "+str(y))
Index 0: 8.09 Index 1: 7.08 Index 2: 67.9 Index 3: 10.33 Index 4: 8.08