Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blackjack problem in function practice #592

Open
lawlll opened this issue May 17, 2024 · 0 comments
Open

blackjack problem in function practice #592

lawlll opened this issue May 17, 2024 · 0 comments

Comments

@lawlll
Copy link

lawlll commented May 17, 2024

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant