-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBlind_Auction.py
39 lines (34 loc) · 1.11 KB
/
Blind_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
38
39
#Code by Ekta Kapase
from replit import clear
logo = '''
___________
\ /
)_______(
|"""""""|_.-._,.---------.,_.-._
| | | | | | ''-.
| |_| |_ _| |_..-'
|_______| '-' `'---------'` '-'
)"""""""(
/_________\\
.-------------.
/_______________\\
'''
print(logo)
print("Let's start bidding!!")
more_bidders = "yes"
bidding = {}
sold_bid = 0
while more_bidders != "no":
name = input("\nWhat's your name? ")
bid = int(input("What is your bid? Rs."))
bidding[name] = bid
more_bidders = input("\nAre there any more bidders? Yes or No : ").lower()
# -----Input done-----
for bidder in bidding:
price = bidding[bidder]
if price > sold_bid:
sold_bid = price
winner = bidder
clear()
# print(bidding)
print(f"\nThe winner is {winner} with the bid of Rs.{sold_bid} .🎉💐")