Question: Define a python function named squareAndDivide. This function should recieve two arguments, both of them floating point numbers. The Job of the function is to
Define a python function named "squareAndDivide. This function should recieve two arguments, both of them floating point numbers. The Job of the function is to square the first argument and then divide the result by the second argument. The final result of both these operations should be returned by your function.
Bonus: add a safeguard to the function, have function check if the second argument is equal to 0.0, if it is, the function should retuen zero. otherwise, proceed with the operations decribed above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
