2.Ask user to enter age, sex ( M or F ), marital status ( Y or N ) and then using following rules print their place of service.
if employee is female, then she will work only in urban areas.
if employee is a male and age is in between 20 to 40 then he may work in anywhere
if employee is male and age is in between 40 t0 60 then he will work in urban areas only.
And any other input of age should print "ERROR".
age = int(input("enter your age"))
gender = input("what is you gender if male type m if female type f")
m_status = input("if married type y else type N")
if gender=="f":
print("you can only work in urban areas")
elif gender=="m" and (age>=20 and age<40):
print("you can work from anywhere")
elif gender=="m" and (age>=40 and age<=60):
print("you can work in urban areas only")
elif not(age<20 and age>60):
print("error")
your post also helped me to solve my problem, thanks a lot slope game