A simple Voting System implemented in Python, simulating an electronic voting process with candidate registration, vote casting, and result display using object-oriented programming.
- Introduction
- Features
- Technologies Used
- Concepts Implemented
- Project Structure
- Installation & Usage
- Screenshots
- Conclusion
- Author
Voting is one of the fundamental pillars of democracy. In the modern world, voting is increasingly done using digital systems.
This project demonstrates a console-based Voting System in Python, where users can register candidates, cast votes, and view election results in a secure manner.
- Candidate Registration: Register candidates with unique IDs and names.
- Vote Casting: Cast votes securely while ensuring each voter votes only once.
- Result Display: View the total votes for each candidate.
- Input Validation: Prevent duplicate candidates, invalid votes, and empty candidate names.
- Interactive CLI: Menu-driven console interface for easy navigation.
- Programming Language: Python 3
- Data Structures:
dict(for candidates and votes),set(for voter tracking) - Execution Environment: CLI (Command-Line Interface), platform-independent
- Object-Oriented Programming (OOP)
- Conditional Statements (
if,elif,else) - Loops (
while True) for menu-driven interface - Functions and Methods for modular design
- Input validation and error handling
- Data integrity using Python core libraries
VotingSystem/ ├── voting_system.py # Main program with VotingSystem class and CLI ├── README.md # Project documentation └── screenshots/ # Folder containing output screenshots
##Installation & Usage
Clone the repository:
git clone
Navigate to the project folder:
cd VotingSystem
Run the Python program:
python voting_system.py
Follow the on-screen menu to:
-Register candidates -Cast votes -Display results -Exit the system
#Conclusion:
This project provides a simple yet effective simulation of an electronic voting system. It demonstrates core Python programming concepts such as OOP, data structures, input validation, and modular programming while creating a practical application.
#Author
Balaji P B.C.A. Batch 1 Project Submitted for Programming in Python course