-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauctionSelling.py
More file actions
40 lines (29 loc) · 884 Bytes
/
auctionSelling.py
File metadata and controls
40 lines (29 loc) · 884 Bytes
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
print('''
_____>>>>
/ \>>>>
/_ _\>>>>
| |
| |
| |
|___|
|___|
WELCOME TO THE BETTIN CONTEST\n ''')
bids = {}
biding_finsished = False
def find_highest_bidder(bidding_record):
price_rec_li = []
for vals in bidding_record.values():
price_rec_li.append(vals)
for price in price_rec_li:
if price>price_rec_li[0]:
print(f"the highset bet is {price}")
while not biding_finsished:
name = input("what's your name\n")
price = input("what's your price\n")
bids[name] = price
should_continue = input("are there any other bidders? type Y or N \n")
if should_continue.lower() == "n":
find_highest_bidder(bids)
biding_finsished = True
elif should_continue == 'y':
pass