Finding the average of a list

How do I find the arithmetic mean of a list in Python? For example:

[1, 2, 3, 4]  ⟶  2.5

← Назад к списку