title: How can I remove all the numbers in a list except for 1 number (Python)?
body: <p>I want my code to remove every single number in a list except for a specific  number, which is <code>3</code>. Instead it removes certain numbers but majority of them still remain in the list.</p>
  <pre><code>myList = [0,1,2,3,4,5]
  i = 0
  for i in myList:
      print(i)
      if i != 3:
          myList.remove(i)
      else:
          continue
      i += 1
      print(myList)
  </code></pre>