title: Creating a python Rectangle object class that can print the corner coordinates
body: <p>I am new to python. I need to create a python <code>Rectangle</code> object class that when called upon one can print the coordinates of the corners as well as have the area and perimeter. I am having issues when I try to run my code that says:</p>
  
  <pre><code>&lt;__main__.Rectangle instance at 0x02F20030&gt;
  </code></pre>
  
  <p>I was told to add the <code>__str__</code> as well but then I get:</p>
  
  <pre><code>TypeError: __str__ returned non-string (type int)
  </code></pre>
  
  <p>Any help would be appreciated, thanks! </p>
  
  <pre class="lang-python prettyprint-override"><code>class Rectangle:
      def __init__(self, topLeft, topRight, bottomLeft, bottomRight):
          self.tL = topLeft
          self.tR = topRight
          self.bL = bottomLeft
          self.bR = bottomRight
      def perim(self):
              return (2 * (self.tL + self.tR)) + (2 * (self.bL + self.bR))
      def area(self):
              return (self.tL + self.tR) * (self.bL + self.bR)
      def position(self):
          return self.tL
          return self.tR
          return self.bL
          return self.bR
  def __repr__(self):
          return self.tL
          return self.tR
          return self.bL
          return self.bT
  
  
  r1 = Rectangle (5, 5, 10, 10)
  print r1
  </code></pre>