Example of valuation of amortizing interest rate swap in Python with quantlib module for quantlib excel version see Amortizing interest rate swap valuation excel quantlib addin First , Install QuantLib package for python (use guide here ) to run the…