class Person:

    def __init__(self, name, email, phone):
        
         self.name = name
         self.email = email
         self.phone = phone
         self.friends = []
         self.greeting_count = 0
            
#Count number of greetings
    def greet_counter(self):
        self.greeting_count += 1

    def greet(self, other_person):
        self.greet_counter()
        print('Hello {}, I am {}!'.format(other_person.name, self.name))
        

    def print_contact_info(self):
        print('{}\'s email is: {} \n{}\'s phone number is: {}'.format(
            self.name, self.email, self.name, self.phone))
#ad a num_friends method
    def add_friend(self,new_friend):
        return self.friends.append(new_friend)

    def num_friends(self):
        return len(self.friends)



sonny = Person('Sonny', 'sonny@hotmail.com', '483-485-4948')
jordan = Person('Jordan', 'jordan@aol.com', '495-586-3456')

sonny.greet(jordan)
sonny.greet(jordan)
sonny.greet(jordan)
sonny.greet(jordan)
# jordan.greet(sonny)

# print(f'{sonny.name}\'s contact info \nemail: {sonny.email}\nphone: {sonny.phone}')
# print(f'{jordan.name}\'s contact info \nemail: {jordan.email}\nphone: {jordan.phone}')

#sonny.print_contact_info()
jordan.add_friend(sonny)
sonny.add_friend(jordan)
# print(len(jordan.friends))
# print(jordan.num_friends())
sonny.greet_counter()
print(sonny.greeting_count)

db887d258e6fe418b86966ffa392d5728a0fd557
class Person:

    def __init__(self, name, email, phone):
        self.name = name
        self.email = email
        self.phone = phone
        self.friends = []
        self.greeting_count = 0

    def greet_counter(self):
        self.greeting_count += 1
    <mask token>

    def print_contact_info(self):
        print("{}'s email is: {} \n{}'s phone number is: {}".format(self.
            name, self.email, self.name, self.phone))

    def add_friend(self, new_friend):
        return self.friends.append(new_friend)

    def num_friends(self):
        return len(self.friends)


<mask token>

class Person:

    def __init__(self, name, email, phone):
        self.name = name
        self.email = email
        self.phone = phone
        self.friends = []
        self.greeting_count = 0

    def greet_counter(self):
        self.greeting_count += 1

    def greet(self, other_person):
        self.greet_counter()
        print('Hello {}, I am {}!'.format(other_person.name, self.name))

    def print_contact_info(self):
        print("{}'s email is: {} \n{}'s phone number is: {}".format(self.
            name, self.email, self.name, self.phone))

    def add_friend(self, new_friend):
        return self.friends.append(new_friend)

    def num_friends(self):
        return len(self.friends)


<mask token>

class Person:

    def __init__(self, name, email, phone):
        self.name = name
        self.email = email
        self.phone = phone
        self.friends = []
        self.greeting_count = 0

    def greet_counter(self):
        self.greeting_count += 1

    def greet(self, other_person):
        self.greet_counter()
        print('Hello {}, I am {}!'.format(other_person.name, self.name))

    def print_contact_info(self):
        print("{}'s email is: {} \n{}'s phone number is: {}".format(self.
            name, self.email, self.name, self.phone))

    def add_friend(self, new_friend):
        return self.friends.append(new_friend)

    def num_friends(self):
        return len(self.friends)


<mask token>
sonny.greet(jordan)
sonny.greet(jordan)
sonny.greet(jordan)
sonny.greet(jordan)
jordan.add_friend(sonny)
sonny.add_friend(jordan)
sonny.greet_counter()
print(sonny.greeting_count)

class Person:

    def __init__(self, name, email, phone):
        self.name = name
        self.email = email
        self.phone = phone
        self.friends = []
        self.greeting_count = 0

    def greet_counter(self):
        self.greeting_count += 1

    def greet(self, other_person):
        self.greet_counter()
        print('Hello {}, I am {}!'.format(other_person.name, self.name))

    def print_contact_info(self):
        print("{}'s email is: {} \n{}'s phone number is: {}".format(self.
            name, self.email, self.name, self.phone))

    def add_friend(self, new_friend):
        return self.friends.append(new_friend)

    def num_friends(self):
        return len(self.friends)


sonny = Person('Sonny', 'sonny@hotmail.com', '483-485-4948')
jordan = Person('Jordan', 'jordan@aol.com', '495-586-3456')
sonny.greet(jordan)
sonny.greet(jordan)
sonny.greet(jordan)
sonny.greet(jordan)
jordan.add_friend(sonny)
sonny.add_friend(jordan)
sonny.greet_counter()
print(sonny.greeting_count)

class Person:

    def __init__(self, name, email, phone):
        
         self.name = name
         self.email = email
         self.phone = phone
         self.friends = []
         self.greeting_count = 0
            
#Count number of greetings
    def greet_counter(self):
        self.greeting_count += 1

    def greet(self, other_person):
        self.greet_counter()
        print('Hello {}, I am {}!'.format(other_person.name, self.name))
        

    def print_contact_info(self):
        print('{}\'s email is: {} \n{}\'s phone number is: {}'.format(
            self.name, self.email, self.name, self.phone))
#ad a num_friends method
    def add_friend(self,new_friend):
        return self.friends.append(new_friend)

    def num_friends(self):
        return len(self.friends)



sonny = Person('Sonny', 'sonny@hotmail.com', '483-485-4948')
jordan = Person('Jordan', 'jordan@aol.com', '495-586-3456')

sonny.greet(jordan)
sonny.greet(jordan)
sonny.greet(jordan)
sonny.greet(jordan)
# jordan.greet(sonny)

# print(f'{sonny.name}\'s contact info \nemail: {sonny.email}\nphone: {sonny.phone}')
# print(f'{jordan.name}\'s contact info \nemail: {jordan.email}\nphone: {jordan.phone}')

#sonny.print_contact_info()
jordan.add_friend(sonny)
sonny.add_friend(jordan)
# print(len(jordan.friends))
# print(jordan.num_friends())
sonny.greet_counter()
print(sonny.greeting_count)
