-
Notifications
You must be signed in to change notification settings - Fork 0
/
auction.py
37 lines (32 loc) · 1.11 KB
/
auction.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
logo = '''
___________
\ /
)_______(
|"""""""|_.-._,.---------.,_.-._
| | | | | | ''-.
| |_| |_ _| |_..-'
|_______| '-' `'---------'` '-'
)"""""""(
/_________\\
.-------------.
/_______________\\
'''
from replit import clear
bid_cont=True
print(logo)
print("Welcome to the secreat auction program")
bidshanary ={}
def bid_values(self,bid_key,bid_value):
self[bid_key]=bid_value
while bid_cont:
name=input("What is your Name :")
bid=int(input("please enter your bid :$"))
bid_values(bidshanary,name,bid)
YN=input("Is there another bidder Y/N ").upper()
if YN =='N':
bid_cont=False
clear()
# print("The highest bid is:")
key_max=max(zip(bidshanary.values(),bidshanary.keys()))[1]
# print(bidshanary)
print(f"The highest bid is {bidshanary[key_max]} from {key_max}")