title: Python Classes with methods
body: <p>Write the definition of a class Counter containing:</p>
  
  <ul>
  <li>An instance variable  counter of type int , initialized to 0.</li>
  <li>A method called increment that adds one to the instance variable  counter . It does not accept parameters or return a value.</li>
  <li>A method called get_value that doesn't accept any parameters. It returns the value of the instance variable  counter .</li>
  </ul>
  
  <p>This is what I have so far...</p>
  
  <pre><code>class Counter(object):
      def __init__(self, ct):
          self.counter = ct
      def increment(self):
          self.counter += 1
      def get_value(self):
          return self.counter
  </code></pre>