Method Python Definition Function Algebra 2