Solving Math Problems Using Python