title: TypeError: type() takes 1 or 3 arguments, Python
body: <pre><code># addmember.py
  
  def addmember(memberlist, newmembers):
      if type(newmembers) not in (type([]), type(())):
          newmembers = [newmembers]
      for m in newmembers:
          if m not in memberlist:
              memberlist.append(m)
      return memberlist
  </code></pre>
  
  <p>I make the python file above first and then load it at IDLE</p>
  
  <pre><code> &gt;&gt;&gt; members = ['a', 'b']
   &gt;&gt;&gt; import addmember
   &gt;&gt;&gt; addmember.addmember(members, 'c')
  </code></pre>
  
  <p>Then, the error alert like below:</p>
  
  <pre>
  if type(newmembers) not in (type([]), type(())):
  TypeError: type() takes 1 or 3 arguments
  </pre>
  
  <p>I cannot understand the meaning of error. </p>
  
  <p>Thanks in advance ~~ :)</p>