Question: Write a function that will return the square root of a number if it is not negative, otherwise return None. Test it with the following

Write a function that will return the square root of a number if it is not negative, otherwise return None. Test it with the following numbers: 5,0,-3.
b. Write a lambda function that takes quantity, price and tax as decimal value (0.05 for 5%) as input and returns sale amount including tax. Test it with quantity =100, price =$1.50 and tax =7.5%

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 Programming Questions!