-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathday009.py
44 lines (41 loc) · 1.08 KB
/
day009.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
32
33
34
35
36
37
38
39
40
41
42
43
44
logo = '''
___________
\ /
)_______(
|"""""""|_.-._,.---------.,_.-._
| | | | | | ''-.
| |_| |_ _| |_..-'
|_______| '-' `'---------'` '-'
)"""""""(
/_________\\
.-------------.
/_______________\\
'''
import os
clear = lambda: os.system('cls')
dict={}
play=True
print(logo)
print("Welcome to Blind Auction")
def take():
global ask
name=input("What is your name: ")
bid=int(input("What is your Bid: $"))
dict[name]=bid
ask=input("Are there any more bidders?yes or no")
def result():
win=0
for i in dict:
if dict[i]>win:
win=dict[i]
name=i
print(f'Heighest bid was {win} made by {name}')
take()
while play:
if ask=="yes":
clear()
take()
else:
play=False
clear()
result()