title: class and defining __str__
body: <p>This is the exercise:</p>
  <p>Write the special method <code>__str__()</code> for <code>CarRecord</code>.</p>
  <p>Sample output with input: <code>2009 'ABC321'</code></p>
  <p><code>Year: 2009, VIN: ABC321</code></p>
  <p>The following code is what I have came up with, but I'm receiving an error:</p>
  <p><code>TYPEERROR: __str__ returned non-string</code></p>
  <p>I can't figure out where I went wrong.</p>
  <pre><code>class CarRecord:
      def __init__(self):
          self.year_made = 0
          self.car_vin = ''
  
  
      def __str__(self):
          return &quot;Year:&quot;, (my_car.year_made), &quot;VIN:&quot;, (my_car.car_vin)
  
     
  
  my_car = CarRecord()
  my_car.year_made = int(input())
  my_car.car_vin = input()
  
  print(my_car)
  </code></pre>