Complete-Python-3-Bootcamp icon indicating copy to clipboard operation
Complete-Python-3-Bootcamp copied to clipboard

blackjack problem in function practice

Open lawlll opened this issue 1 year ago • 0 comments

the solution given isnt accurate according to the problem statement so heres my version of it:

total = a+b+c
if total <= 21:
    return total
elif 11 in (a, b, c):
    total -= 10
    if total > 21:
        return 'BUST'

lawlll avatar May 17 '24 20:05 lawlll