Voting_System_Code
Voting_System_Code
# Voting System
# Main menu
def main():
while True:
print("\nVoting System")
print("1. Add Candidate")
print("2. Vote")
print("3. View Results")
print("4. Exit")
choice = input("Enter your choice: ")
if choice == "1":
add_candidate()
elif choice == "2":
vote()
elif choice == "3":
view_results()
elif choice == "4":
print("Exiting system...")
break
else:
print("Invalid choice! Please try again.")