Skip to content

Latest commit

ย 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”จ Python Secret Auction

A simple Secret Auction program built with Python.

This project allows multiple bidders to enter their bids anonymously and uses a dictionary to store the bids. At the end of the auction, the program determines and displays the bidder with the highest bid.

โœจ Features

  • ๐Ÿ”จ Secret auction system
  • ๐Ÿ‘ค Multiple bidders
  • ๐Ÿ’ฐ Bid collection and storage using a Python dictionary
  • ๐Ÿ† Automatically finds the highest bidder
  • ๐Ÿงน Clears the console between bidders
  • ๐Ÿ›ก๏ธ Handles invalid bid input using try/except
  • ๐Ÿ–ฅ๏ธ Works on Windows, Linux, and macOS

๐Ÿ› ๏ธ Concepts Practiced

This project was created to practice fundamental Python concepts:

  • Dictionaries
  • Functions
  • for loops
  • while loops
  • Conditional statements
  • User input
  • try/except
  • The os module
  • Basic program flow

๐Ÿš€ How to Run

Make sure Python 3 is installed on your system.

Clone the repository:

git clone https://github.com/Ramtinexe/python-secret-auction.git

Navigate to the project folder:

cd python-secret-auction

Run the program:

python main.py

๐ŸŽฎ How It Works

  1. Enter your name.
  2. Enter your bid.
  3. Choose whether there are other bidders.
  4. If there are more bidders, the console is cleared.
  5. When there are no more bidders, the program finds the highest bid.
  6. The winner and their bid are displayed.

๐Ÿ“‚ Project Structure

python-secret-auction/
โ”‚
โ”œโ”€โ”€ main.py
โ””โ”€โ”€ README.md

๐Ÿ“Œ Example

Welcome to the secret auction program!

Please enter your name: Ramtin
Please enter your bid: $ 100

Are there any other bidders? (y/n) y

Please enter your name: Alex
Please enter your bid: $ 150

Are there any other bidders? (y/n) n

The winner is Alex with a bid of $150

๐Ÿ“š Project Purpose

This is a beginner-friendly Python project created as part of my practice with Python fundamentals and data structures.

๐Ÿ‘ค Author

Ramtin

GitHub: @Ramtinexe

About

A simple Secret Auction program built with Python.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages