I keep getting an "invalid syntax" message when I try to run this program. It highlights "age" in red after the "else" statement. I'm not sure what I did wrong.
age = float(input('How old are you? '))
citizen = float(input('How long have you been an American citizen? '))
if age >= 30 and citizen >= 9:
print('You are eligible to become a US Senator and a House Representative!')
else age < 30 >= 25 and citizen < 9 >= 7:
print('You are only eligible to become a House Representative.')
if age < 25 or citizen < 7:
print('You are not eligible to become a US Senator or a House Represenatative.')
else ...is not valid. You meanelif ...age < 30 >= 25is weird, too (it does not do what you want it to do in this case)