Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import randint
- first_name = input("Your name:")
- last_name = input("Last name:")
- balance = 1000
- print(f"Welcome to our casino, {first_name} {last_name}!")
- while True:
- bet = int(input(f"\nBalance: {balance}$\nInput the bet (zero to exit): "))
- if(bet == 0):
- break
- chance = randint(-50, 50)
- balance += chance
- if(chance > 0):
- print('You are won {chance}$!')
- else:
- print('You are loss {chance}$ =(')
- print('We wait you again =)')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement