I need to make sure that all the conditions are met, with a special case. The student is still deemed 'eligible' even if either the 'before2010' or 'gerequirements' aren't met.
However, I can't get the program to work properly. I want to be able to type 'y', 'yes', 'n', or 'no' for the answers to the yes/no questions, but it comes off as an error, because I didn't assign 'y' apparently.
def main():
credits = int(input("Enter the total number of credits completed: "))
udcredits = int(input("Enter the number of upper-division credits completed: "))
localcredits = int(input("Enter the number of local credits completed: "))
mrequirements = input("Have you completed all major requirements? ")
before2010 = eval(input("In what year did you matriculate? "))
gerequirements = input("Are your general education requirements done? ")
if before2010 < 2010 and credits >= 120 and udcredits >= 40 and localcredits >= 30 and mrequirements[0] == y:
print("eligible")
else:
print("ineligible")
if gerequirements[0] == y and credits >= 120 and udcredits >= 40 and localcredits >= 30 and mrequirements[0] == y:
print("eligible")
else:
print("ineligible")
main()