import numpy as np def poli(x): return (x-1)**9 val = poli(3) print(val) Risultato: 512 import numpy as np def poli(x):…