Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import auctionart
- clearscr = lambda: print('\n' * 100)
- print(auctionart.logo)
- print("Welcome to the silent auction program.")
- allbids = {}
- def addbid():
- usrname = input("What is your name? ")
- usrbid = int(input("Whats your bid?"))
- allbids[usrname] = usrbid
- more_bids = input("Are there more bidders? Yes or No: ").lower()
- if more_bids == "yes":
- clearscr()
- addbid()
- else:
- find_max_bid()
- def find_max_bid():
- maxbidder = max(allbids)
- print(f"{maxbidder} is the winner!")
- addbid()
Add Comment
Please, Sign In to add comment