string pattern average all int python code example Example: mean of a list python import numpy as np np.mean(list) np.std(list)