title: Python: How to get rid of this TypeError?
body: <p>I am testing my object oriented programming file:</p>
  <pre><code>class Animal():
      def __init__(animal):
          if animal == &quot;dog&quot;:
              print(&quot;Bark&quot;)
          elif animal == &quot;cat&quot;:
              print(&quot;Meow&quot;)
          elif animal == &quot;cow&quot;:
              print(&quot;Moo&quot;)
          else:
              print(&quot;No animal given&quot;)
  </code></pre>
  <p>It works fine, But if i do this:</p>
  <pre><code>animal = Animal(&quot;dog&quot;)
  </code></pre>
  <p>It gives me the following error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;c:/Users/????/Desktop/Leahnn Files/testing/oop.py&quot;, line 12, in &lt;module&gt;
      animal = Animal(&quot;dog&quot;)
  TypeError: __init__() takes 1 positional argument but 2 were given
  </code></pre>
  <p>How do I get rid of this?</p>