(Use Python) Use the Design Recipe to define a function called black_jack which consumes to 2 int values greater than 0. Return whichever value is nearest to 21 without going over. Return 0 if they...


(Use Python) Use the Design Recipe to define a function called
black_jack  which consumes to 2
int
 values greater than 0.  Return whichever value is nearest to 21 without going over. Return 0 if they both go over. Include a docstring!


For example:
























Test

Result
print(black_jack(19, 21))21
print(blackjack(21, 19))21
print(black_jack(19, 22))19


Write threeassert_equal statements to test your function.



Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here