It is indented when I paste it in but when I post it the indentations aren't there.
This is a result I got from a specific input:
Enter your age: 25
Enter the amount of years you have been a citizen: 7
You can also be a house representative!
def main(): age = eval(input("Enter your age: ")) citizen = eval(input("Enter the amount of years you have been a citizen: ")) if age >= 30: if citizen >= 9: print("You can be a state senator!") if age >= 25: if citizen >= 7: print("You can also be a house representative!") #I understand that ELSE will only show up if the other IF statements are not triggered #but how would one arrange the code to allow ELSE to be triggered if an IF statement is #also being used? else: print("You are not eligible for senate.") print("You are also not eligible for the house.") main()
This is a result I got from a specific input:
Enter your age: 25
Enter the amount of years you have been a citizen: 7
You can also be a house representative!