title: Creating a rational class and operator overloading in python
body: <p>I'm defining rational class, so for example a = Rational(1,2) #1/2, and b = Rational(2,3) #2/3, and I want to have c = a + b so that c = Rational(7,6) #7/6. My code so far is:</p>
  
  <pre><code>class Rational(object):
      def __init__(self, v1, v2):
          self.value = v1/v2
      def  __add__(self, value2):
          return Rational(self.value + value2.value)
  a = Rational(1,2)
  b = Rational(2,3)
  c = a+b
  </code></pre>
  
  <p>But I get the TypeError message that <strong>init</strong> requires 3 arguments (2 given), where did it get wrong in the coding above pls? Thank you!</p>