How To Differentiate Using Python