-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vote.py
28 lines (28 loc) · 1.2 KB
/
Vote.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
n= str(input("Do you want to login? "))
while n=='Yes':
a= input("Enter voter's deatils:")
b= int(input("Enter unique access pin:"))
input("Click 'Login':")
vd= input("Enter voter's detail again to verify:")
dv= int(input("Again write your unique access pin:"))
if a==vd and b==dv:
print("User exists and the pin is valid.")
print("Granting access to Voting Interface.")
c= input("Enter your first candidate for first Post using checkbox:")
input("Enter 'Next':")
c1= input("Enter your candidate for other Posts using checkbox:")
ad= input("Click 'Next' to proceed or 'Back' to edit selected candidates:")
while ad=='Next':
v= str(input("Is voter ready to vote selected candidates:"))
if v=='Yes':
input("click'VOTE':")
break
elif v=='No':
ad= input("Click 'Next' to proceed or 'Back' to edit selected candidates:")
n= str(input("Do you want to login? "))
else:
print("User don't exist.You are not allowed to give vote.")
n= str(input("Do you want to login? "))
while n=='No':
input("Enter 'Menu':")
print("Exit")