course = input("Course name and number (e.g. CPSC 203): ")
if (course == "CPSC 203"):
    print("Non-majors: Solving problems with computers mostly by using pre-written applications")
elif (course == "CPSC 217"):
    print("Non-majors: Procedural (functions) programming")
    course = input("Course name and number (e.g. CPSC 203): ")
    if (course == "CPSC 219"):
        print("Non-majors: Object-Oriented programming")
        course = input("Course name and number (e.g. CPSC 203): ")
        if (course == "MATH 271"):
            print("Completed all 1st year course requirements, can take many 2nd year courses such as CPSC 331")
elif (course == "CPSC 231"):
    print("Majors course: Procedural (functions) programming")
    course = input("Course name and number (e.g. CPSC 203): ")
    if (course == "CPSC 233"):
        print("Majors course: Object-Oriented programming")
        course = input("Course name and number (e.g. CPSC 203): ")
        if (course == "MATH 271"):
            print("Completed all 1st year course requirements, can take many 2nd year courses such as CPSC 331")

else:
    print("OK")
