Question: im using jupyter hub(python) urgent pls (a) Define a function that multiplies two numeric values together and then eubes that product. Include a doestring. In
(a) Define a function that multiplies two numeric values together and then eubes that product. Include a doestring. In this and the subsequent questions, you may name your function whatever you like, as long as the code works! 4 (b) Test that the function worked by calling it with the arguments 2 and 3 . (c) Define a second function that uses the function you already created and returns the Boolean value True if the result is positive and the Boolean value False if the result is negative. Again, include a docstring. (d) Test that your second function worked by calling it with one positive result and one negative result. Show both. (e) Define a third (and final, we promise!) function that is the same as the second function except that it returns the Boolean value True if it's positive, and nothing if it's negative. Include a docstring! (f) Test that your third function worked by calling it with one positive result and one negative result. Show both. (g) Last one! You're doing great! Create a variable 1 with the initial value set to 5 . Write some code that, prints the value of 1 and then increases its value by 1.5 and prints that new value, until the value of 1 exceeds 12
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
