Exemplo n.º 1
0
 def __init__(self,
              username,
              firstname,
              lastname,
              gender,
              wins=0,
              defeats=0):
     Person.__init__(self, lastname, firstname, gender)
     self.wins = wins
     self.defeats = defeats
     self.username = username
Exemplo n.º 2
0
    def __init__(self, name, surname, sex, birthDate, height, mass):
        Person.__init__(self, name, surname, sex, birthDate, height, mass)

        database = Pushup()
        self.pushups = database.getPushupsByAthlete(self._name)