-
Notifications
You must be signed in to change notification settings - Fork 75
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
run out of funds run out of fun or nah #1
Comments
dont really know how to use github to fix it myself.. yet. also "quit()" is needed instead of break for the block containing if answer == "q": i fixed these problems after the tutorial was finished |
def main():
main() will do the job aswell |
I'm fairly new to python and this walk through was great. I understood a lot of it but there are parts of it that were still beyond what I know. I got stuck in a loop when my balance reached zero. I'm not sure it was a proper way to get out of it but I added to the main function. It printed out and exited as expected. if balance == 0: Updated.
|
when the balance is null after spinning we need to deposit more.
soo in the spin function i believe this is needed
if total_bet > balance <= 0:
print(f" You do not have enough to bet that amount, your current balance is: ${balance}")
main()
The text was updated successfully, but these errors were encountered: