repl.it
@panniu/

Deal or No Deal

Python

No description

fork
loading
Files
  • main.py
main.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
29
30
31
import random

def createBox():
	box = []
	for x in range(25):
		box.append(x+1)
	box_money = dict(zip(box,money))
	return box_money
def drawCases(money):
	for x in (money):
		if x%6 == 0:
			print("\n")
		print("["+str(x)+"]",end=" ")
money = [
    0, 1, 5, 10, 25, 50, 75, 100, 200, 300, 400, 500, 750, 1000, 5000, 10000,
    25000, 50000, 75000, 100000, 200000, 300000, 400000, 500000, 750000,
    1000000
]
money = random.sample(money, len(money))
box_money = createBox()
noDeal = True

myCase = int(input("Choose Your Case [1,26] : "))
myCase = [myCase,money[myCase-1]]
print("\nYou choose case[{}]\n".format(myCase[0]))
print(box_money)
print()
del box_money[myCase[0]]
print(box_money)
drawCases(money)
Fetching token
?