title: Using created classes
body: <p>I have this class Person created:</p>
  
  <pre><code>class Person(object):
      def __init__(self, name, age, gender):
  
          self._name = name
          self._age = age
          self._gender = gender
          self._friend = None
  
      def __eq__(self, person):
          return str(self) == str(person)
  
      def __str__(self):
          if self._gender == 'M':
              title = 'Mr'
          elif self._gender == 'F':
              title = 'Miss'
          else:
              title = 'Ms'
  
          return title + ' ' + self._name + ' ' + str(self._age)
  
      def __repr__(self):
          return 'Person: ' + str(self)
  
      def get_name(self):
          return self._name
  
      def get_age(self):
          return self._age
  
      def get_gender(self):
          return self._gender
  
      def set_friend(self, friend):
          self._friend = friend
  
      def get_friend(self):
          return self._friend
  </code></pre>
  
  <p>I now need to have 3 functions:</p>
  
  <ol>
  <li><p>Using the Person class, write a function <code>print_friend_info(person)</code> which accepts a single argument, of type Person, and: </p>
  
  <ul>
  <li>prints out their name</li>
  <li>prints out their age</li>
  <li>if the person has any friends, prints 'Friends with {name}'</li>
  </ul></li>
  <li><p>A function <code>create_fry()</code> which returns a Person instance representing Fry. Fry is 25 and his full name is 'Philip J. Fry' </p></li>
  <li><p>A function <code>make_friends(person_one, person_two)</code> which sets each argument as the friend of the other. </p></li>
  </ol>
  
  <p>And this is what I've got:</p>
  
  <pre><code>def print_friend_info(person):
      person= Person
      person_name=person.get_name(person)
      person_age=person.get_age(person)
      person_gender=person.get_gender(person)
      person_friends=person.get_friend(person)
      return person_name, person_age, person_gender, person_friends
      """print (person_name)
      print (person_age)
      print ('Friends with {'+person_friends+'}')"""
  
  
  def create_fry():
      fry=Person("Philip J. Fry", 23, "M")
      return fry
  
  
  def make_friends(person_one,person_two):
      return person_one.set_friend(person_two)
  </code></pre>
  
  <p>And the error handler says <code>"type object 'Person' has no attribute '_name'"</code></p>