Een snelle herhaling van lijsten:
cijferLijst = [3.4, 8.0, 6.9, 7.0, 8.2]
# Index en waarde ophalen
print(cijferLijst[0]) # 3.4 (eerste element)
print(cijferLijst[-1]) # 8.2 (laatste element)
print(len(cijferLijst)) # 5 (lengte)
# Element aanpassen
cijferLijst[0] = 5.5
print(cijferLijst) # [5.5, 8.0, 6.9, 7.0, 8.2]
# Index zoeken
print(cijferLijst.index(6.9)) # 2