Question: 3. (4 points) Write Python function code that satisfy the following conditions. 1) Name the function as MyFunction. 2) The function has one argument, name

 3. (4 points) Write Python function code that satisfy the following

3. (4 points) Write Python function code that satisfy the following conditions. 1) Name the function as MyFunction. 2) The function has one argument, name it n. (a) Given an integer n, if n is less than 21 then return the difference between n and 21 . (b) if n is equal or over 21 then return double the difference between n and 21 . 'Hint: Your code should return 2 when n=19 and return 8 when n=25. What will the code return when n=30

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!