Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = int(input('Enter the age of the person: '))
- b = str(input('Enter the citizenship of the person: '))
- c = str(input('Do he/she have a voter ID card? '))
- if a >= 18:
- if b == 'Indian':
- print('You are Indian and you can vote')
- if c == 'yes':
- print('Yes, you are eligible to vote')
- else:
- print('You are not eligible to vote')
- else:
- print(""Sorry, you are not a citizen so you can't vote"")
- else:
- print(""Sorry, you are not eligible to vote"")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement