Open this example in the interactive library
Source code
from statistics import fmean
print(fmean([60, 90], weights=[1, 3]))Sample output
82.5

Open this example in the interactive library
from statistics import fmean
print(fmean([60, 90], weights=[1, 3]))82.5