PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import random
balance = 100
fst = str(random.randint(1, 9))
snd = str(random.randint(1, 9))
trd = str(random.randint(1, 9))
tabla = [".___.___.___.","| "+ fst + " | "+snd+ " | "+trd + " |",".___.___.___."
]
print("Welcome to Gami's Roulette!")
print("Your balance is currently $"+str(balance)+"!")
for i in range(len(tabla)):
print(tabla[i])
balance -= 1
fst, snd, trd = int(fst), int(snd), int(trd)
if fst == snd == trd:
if fst == 7:
balance += 500
print("Your current balance is $", balance)
elif fst == 1:
balance += 100
print("Your current balance is $", balance)
else:
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run