Advertisement
aveBHS

New casino

Feb 21st, 2020
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. from random import randint
  2. first_name = input("Your name:")
  3. last_name = input("Last name:")
  4. balance = 1000
  5. print(f"Welcome to our casino, {first_name} {last_name}!")
  6. while True:
  7.     bet = int(input(f"\nBalance: {balance}$\nInput the bet (zero to exit): "))
  8.     if(bet == 0):
  9.         break
  10.     chance = randint(-50, 50)
  11.     balance += chance
  12.     if(chance > 0):
  13.         print('You are won {chance}$!')
  14.     else:
  15.         print('You are loss {chance}$ =(')
  16. print('We wait you again =)')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement