-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPPROJECT1.py
More file actions
96 lines (89 loc) · 2.45 KB
/
PPROJECT1.py
File metadata and controls
96 lines (89 loc) · 2.45 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import random
def evote():
a=["bisat","mayank","akash","dakshdeep","devanshu"]
b=["8168196670","8901009460","6395910040"]
c=["BJP","CONGRESS","AAP","BSPA"]
print("please enter your Name")
name=str(input())
name=name.lower()
if name in a:
print("Now,please enter your voter id")
number=str(input())
if number not in b:
print("Yeah Match Not found")
exit(0)
if number in b:
print("Match found")
else:
print("ENTER A VALID NAME")
exit(0)
print("Now ,please enter the OTP below")
otp=""
for i in range(6):
otp+=str(random.randint(1,9))
print(otp)
print("Now, enter the OTP")
u=str(input())
if otp==u:
print("YES,YOU MAY PROCEED NOW")
print("please choose your candidate")
for g in range(len(c)):
print(c[g])
candidate=str(input())
candidate=candidate.upper()
for g in range(len(c)):
if candidate==c[g]:
print("you choose ",candidate)
print("THANK YOU")
print(" Press Y to do vote Or N to exit")
l=str(input())
l=l.upper()
if l=="Y":
evote()
else:
exit(0)
a=["bisat","mayank","akash","dakshdeep","devanshu"]
b=["8168196670","8901009460","6395910040"]
c=["BJP","CONGRESS","AAP","BSPA"]
print("please enter your Name")
name=str(input())
name=name.lower()
if name in a:
print("Now,please enter your voter id")
number=str(input())
if number not in b:
print("Yeah Match Not found")
exit(0)
if number in b:
print("Match found")
else:
print("ENTER A VALID NAME")
exit(0)
print("Now ,please enter the OTP below")
otp=""
for i in range(6):
otp+=str(random.randint(1,9))
print(otp)
print("Now, enter the OTP")
u=str(input())
if otp==u:
print("YES,YOU MAY PROCEED NOW")
print("please choose your candidate")
for g in range(len(c)):
print(c[g])
candidate=str(input())
candidate=candidate.upper()
for g in range(len(c)):
if candidate==c[g]:
print("you choose ",candidate)
print("THANK YOU")
print(" Press Y to do vote Or N to exit")
l=str(input())
l=l.upper()
if l=="Y":
evote()
else:
exit(0)
elif otp!=u:
print("ACCESS DENIED")
exit(0)