title: Removing repeated characters from a list in python
body: <p>So, im trying to remove repeated characters from the following 2 lists I have, My code works for the Int's but not for my String's?!</p>
  
  <p>Any tips?
  Code is as follows:</p>
  
  <pre><code>list = [0,1,0,1,2,2,3,4,5,7,9,8,10,1,1,3,4,5,6,7,8,9,10]
  
  list2 = ['z','r','a','z','x','b','z','a','f','f','f','x','t','t','o','p','a','b','v','e','q','p','c','x']
  
  for i in list:
  
      list.sort()
      compteur = 0
  
      while compteur &lt; len(list):
  
          if i == list[compteur]:
  
              list.remove(list[compteur])
              compteur+=1
          elif i != list[compteur]:
              compteur+=1
  </code></pre>
  
  <p>Under for i in list: everything should be indented idk why i was not able to make it appear the correct way.</p>