Question: TWO QUESTIONS: USE PYTHON LANGUAGE 1.Use the Design Recipe to define a function called blackJack which consumes two int values greater than 0. Return whichever

TWO QUESTIONS: USE PYTHON LANGUAGE

1.Use the Design Recipe to define a function called blackJack which consumes two int values greater than 0. Return whichever value is nearest to 21 without going over. Return 0 if they both go over.

For example:

Test Result
print(blackJack(19, 21)) 21
print(blackJack(21, 19)) 21
print(blackJack(19, 22)) 19

2. Use the Design Recipe to write a function called min_value that accepts three numeric values and returns the minimum value. Do not use any built-in functions.

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!