Skip to content

A Python-based console Voting System implementing candidate registration, secure vote casting, and result display using object-oriented programming and core data structures.

License

Notifications You must be signed in to change notification settings

Balaji-P-A/Voting-System---Python-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Voting System in Python

A simple Voting System implemented in Python, simulating an electronic voting process with candidate registration, vote casting, and result display using object-oriented programming.


Table of Contents


Introduction

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.


Features

  • 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.

Technologies Used

  • Programming Language: Python 3
  • Data Structures: dict (for candidates and votes), set (for voter tracking)
  • Execution Environment: CLI (Command-Line Interface), platform-independent

Concepts Implemented

  • 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

Project Structure

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


About

A Python-based console Voting System implementing candidate registration, secure vote casting, and result display using object-oriented programming and core data structures.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages