I don't have the graphics module, but I tested your logic and found it faulty. Here is my test code:
[PHP]age = int(raw_input("years of age: "))
citizenship = int(raw_input("years citizen: "))
# age 25 to less than 30
if 25 <= age < 30:
if citizenship >= 7:
print 'Eligible for US representative'
else:
print 'Ineligible for US representative'
# age 30 and more
elif age >= 30:
if citizenship >= 9:
print 'Eligible for US senator and US representative'
elif 7 <= citizenship < 9:
print 'Ineligible for US senator, eligible for US representative'
# does not meet any of the conditions
else:
print 'Ineligible for US senator or representative'[/PHP]
Reputation Points: 1333
Solved Threads: 1404
DaniWeb's Hypocrite
Offline 5,792 posts
since Oct 2004