-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvoting
More file actions
34 lines (34 loc) · 874 Bytes
/
voting
File metadata and controls
34 lines (34 loc) · 874 Bytes
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
# Change the voting system
import time
jon = 0
jan = 0
sir = 0
def session1():
print("Are you sure you want to vote for John Doe?")
votevar = input("Y/N: ")
if votevar == "Y":
time.sleep(1)
print("Thank you for voting for John Doe")
jon = jon + 1
def session2():
print("Are you sure you want to vote for Jane Smith?")
votevar = input("Y/N: ")
if votevar == "Y":
print("Thank you for voting for Jane Smith")
jan = jan + 1
def session3():
print("Are you sure you want to vote for Sirhan Sirhan?")
votevar = input("Y/N: ")
if votevar == "Y":
print("Thank you for voting for John Doe")
print("Type in John Doe, Jane Smith,or Sirhan Sirhan")
vote = input("Who do you want to vote for?")
time.sleep(1)
if vote == '1':
session1()
if vote == '2':
session2()
if vote == '3':
session3()
if vote == '-12':
print("BOBBY IS AWESOME!")