# (15 points) As a developer, I want to create a Sweepstakes class that uses the Dictionary data structure
# as an underlying structure. The Sweepstakes class will have the following methods with full
# implementation (write the functionality) of each method:
# - __init__(self, name)
# - register_contestant(self, contestant)
# - pick_winner() (should return a contestant object)
# - print_contestant_info(self, contestant)

# (5 points) As a developer, I want to use the observer design pattern to notify all users of the winning
# contestant, with the winner of the sweepstakes getting a different message specifically congratulating
# them on being the winner.

import contestant

class SweepStakes:
    def __init__(self, name):
        contestants_dict = {}
        registration_number = 0

    def register_contestant(self, contestant):
        registration_number += 1
        contestants_dict.update({registration_number:contestant})

    def print_contestant(self, contestant):
        print(self.contestant.firstName)
        print(self.contestant.lastName)
        print(self.contestant.age)

    def pick_winner(self):
        self.winner = self.contestant[random.randint(1, len(Contestant))]
        return self.winner







