Voter Card Program in Python
- In this program, we learn how to write a voter id card program in python.
Source Code:
age = int(input('ENTER YOUR AGE : '))
vid = input('DO YOU HAVE VOTER ID CARD : ')
if vid.casefold() == "yes".casefold():
vid = True
else:
vid = False
if vid:
if age:
if age >= 18:
print('YOU CAN VOTE: ')
else:
print('YOU CAN NOT VOTE DUE AGE: ')
else:
print('PLEASE PROVIDE YOUR AGE: ')
else:
print('PLEASE BRING THE VOTER ID CARD: ')
vid = input('DO YOU HAVE VOTER ID CARD : ')
if vid.casefold() == "yes".casefold():
vid = True
else:
vid = False
if vid:
if age:
if age >= 18:
print('YOU CAN VOTE: ')
else:
print('YOU CAN NOT VOTE DUE AGE: ')
else:
print('PLEASE PROVIDE YOUR AGE: ')
else:
print('PLEASE BRING THE VOTER ID CARD: ')