Challenge yourself

Beginner
Intermediate
Expert

class Athlete:
    """Represents an athlete.

    attributes: name: str, score: int
    """

    def set_info(self, name, score):
        self.name = name
        self.score = score



Define a method, has_at_least_score, which takes another athlete and returns True if the first athlete's score is greater than or equal to the second's.


Create two athletes, set their attributes, and compare them using has_at_least_score.