linear equations + quadratic equations python code example Example: quadratic equations in python def square(n): num=n newnum=n*n return newnum