-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.py
More file actions
32 lines (25 loc) · 720 Bytes
/
main.py
File metadata and controls
32 lines (25 loc) · 720 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
from replit import clear
from art import logo
print(logo)
auc = {}
_continue_ = True
def find_highest(bidding_record):
highest= 0
winner= ""
for bidder in bidding_record:
bid_amount = bidding_record[bidder]
if bid_amount > highest:
highest = bid_amount
winner = bidder
print(f"The highest bidder is {winner} and highest bid is $ {highest}")
while _continue_:
name = input("What's your name? \n")
bid = int(input("What is your bid? \n"))
auc[name] = bid
result = input("Enter Yes to clear or No to continue \n").lower()
if result == "Yes" or result == "yes":
_continue_
clear()
elif result == "no" or result == "No":
_continue_ = False
find_highest(auc)