

class Degree:
    def __init__(self, degree):
        self.degree = degree
        if self.degree == "T_AS":
            self.degree = 0
        if self.degree == "T_BS":
            self.degree = 1
        if self.degree == "T_MS":
            self.degree = 2
        if self.degree == "T_PHD":
            self.degree = 3

    def __eq__(self, other):
        return self.degree == other.degree

    def __gt__(self, other):
        return self.degree > other.degree
