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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!