Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print "VOTER ELIGIBILITY AND POLLING STATION PROGRAM"
- print
- print
- age= int(raw_input("Enter your age (Type ' 0 ' to exit program) :"))
- while age != 0:
- if age >= 18:
- zipcode= int(raw_input("Enter your residence's zip code:"))
- if zipcode == 93305:
- print "Your polling station is 123 Panorama Drive."
- elif zipcode == 93306:
- print "Your polling station is 6143 Fairfax Drive."
- elif zipcode ==93307:
- print "Your polling station is 21121 B Street."
- elif zipcode ==93308:
- print "Your polling station is 863 Desmond Ct."
- elif zipcode == 93309:
- print "Your polling station is 7332 Del Canto Ct."
- else:
- print "Error-unknown zip code"
- else:
- print "ineligible"
- age= int(raw_input("Enter your age (Type ' 0 ' to exit program) :"))
- raw_input("\nRun complete.Press the Enter key to exit.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement