human
What is a the Python program you requested given the following:
I am working on the file "07_object_oriented.ipynb".
The first task is:
Building something more useful
Can you write Python program for it?
assistant
#Here is the Python program you requested.

import datetime

class Person:

    def __init__(self, first_name, last_name, birthday, email_address):
        self.first_name = first_name
        self.last_name = last_name
        self.birthday = birthday
        self.email_address = email_address
       
    def age(self):
        today = datetime.date.today()
        born = datetime.date(*[int(field) for field in self.birthday.split('/')])
        return today.year - born.year - ((today.month, today.day) < (born.month, born.day))
      
    def email(self, message):
        print('Sending email to {} {} ({})'.format(self.first_name, self.last_name, self.email_address))   
        print(message)

harry = Person('Harry', 'Potter', '1980/7/31', 'harry@hogwarts.uk')

harry.email('Hello Harry')

harry.age()