I know my code is a little messy, I am going to clean it up once I can figure out why the if statements to check state[0] is only printing the first statement. I tried moving it around the codeblocks and indentations but still only getting the first if statement to print. Any advice/help would be great. Just came back to python, been learning java/SQL, this class is going back to python, so I'm a little off at then moment. Thanks
ballotLoop = input("Hey there, are you here for the voter ballot? Exit to stop.\n")
while ballotLoop != "exit":
lastName = input("Please enter your last name.\n")
firstName = input("Please enter your first name.\n")
age = int(input("Please enter your age.\n"))
usCit = input("Are you a United States Citizen?\n")
if usCit == "yes":
if age >= 18 and age < 80:
print(firstName, lastName +". Great you are over 18 and a US citizen\nYou may proceed with the form.\n")
elif age > 0 and age < 18:
print("I am sorry you are not old enough to complete this voter form.")
elif age > 80:
print("Error age does not make sense.\n")
elif age < -1:
print("Error age does not make sense.\n")
state = input("What state do you currently reside in?\n")
zipcode = input("What is your current zipcode\n")
print("Alright so to make sure everything is correct we have the following.\n"\
+ firstName, lastName + ", you are "+ str(age) + " years old.\nYou marked " + usCit + \
" for being a US citizen.\nYou currently reside in " + state + " and your zipcode is " + zipcode +"\n")
if state[0] == "a" or "c":
print("You should recieve your ballot in 1 week")
elif state[0] == "t" or "d":
print("You should recieve your ballot in 4 weeks")
elif state[0] == "m" or "l":
print("You should recieve your ballot in 2 weeks")
elif usCit == "no":
print("I am sorry but you may not complete this form, I am going to have to ask you to leave.")
ballotLoop = input("Would you like to fill out another ballot? Exit to stop.\n")
if ballotLoop == "exit":
print("Thank you for you vote today, every little bit makes a difference!!")