title: Recursively Checking for List Uniqueness in Python
body: <p>I have a list of 100 numbers and I am trying to write a function to determine whether all of the numbers are unique (as they should be). My function is <code>unique(lst)</code> and it takes a list as an input and should return True if all the numbers in my list are unique. Oh and False otherwise, an example: </p>
  
  <pre><code>&gt;&gt;&gt; unique([1, 2, 3])
  True
  
  &gt;&gt;&gt; unique([2, 4, 3, 4])
  False
  </code></pre>
  
  <p>I wrote this so far:</p>
  
  <pre><code>def unique(lst):
      if len(lst) == 1:
          return True
      else:
          if lst[0] in lst[1:]:
              return False
          if lst[1] in unique(lst[2:-1]):
              return False
          else:
              return True 
  </code></pre>
  
  <p>I'm having trouble recursively checking whether the  numbers after lst[0] are unique. Can anyone tell me how to edit my code so it checks correctly?</p>