Hw5 shestakoff

5 task.
Спешил просто.
On 20.11.14 14:17, Volodymyr Vakulenko wrote:
>
> In o_shestakoff/hw5/hw5_solution1.py:
>
> > +    def __init__(self, surName, firstName, birth_date, nickname=None):
> > +        self.surname = surName
> > +        self.first_name = firstName
> > +        self.birth_date = datetime.strptime(birth_date, '%Y-%m-%d').date()
> > +        if nickname is not None:
> > +            self.nickname = nickname
> > +
> > +    def get_age(self):
> > +        return str(int(((datetime.now() - datetime(self.birth_date.year, self.birth_date.month, self.birth_date.day)).days / 365.0)))
> > +
> > +    def get_fullname(self):
> > +        return self.surname + ' ' + self.first_name
> > +
> > +
> > +
> > +# p = Person('Shestakov', 'Oleg', '1991-06-17', 'gremlin_lee')
>
> вот такой мусор положено убирать на продакшене ;) (в нашем случае - 
> перед сдачей)
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/pybursa/homeworks/pull/50/files#r20641551>.
>