Sitemap
Amber Mercado

Amber Mercado

Python Developer, Blogger

Member-only story

Program a Silent Auction in Python.

4 min readMar 11, 2023
Press enter or click to view image in full size
Photo by Tingey Injury Law Firm on Unsplash

Have you ever been to an auction? You’ve seen it on television, where a man behind a podium, quickly speaks about the price of an item with a starting bid and if anyone cares to raise the bid, they raise a paddle to signify that is the price they wish to purchase the item at. There are public auctions, private auctions, and even online auctions, think of eBay! Items that are exclusive, rare, or common can be auctioned off.

In this article, I am going to code a silent auction program. In case you didn’t already know, a silent auction means you do not know what the other people in the room have placed for a bid. The way this program is going to work will be off of one computer — it will ask for the name and the amount the user would like to bid after it will ask if there is another person available to make a bid. If the answer is yes, then the computer will clear the screen so that the next person will not know what the person previously has entered, this will continue until there are no more users to make bids. Once there are no bids left to be placed, the program will name the winner and the amount they bid. Of course, I am going to be working in Python3, building and fleshing out the program as we go along! Let’s get started!

The first thing to build is an empty dictionary is going to be created. Then inputs are needed from the users, and the users’ inputs…

--

--