Skip to content

Instantly share code, notes, and snippets.

@number5
Created October 11, 2010 10:42
Show Gist options
  • Save number5/620335 to your computer and use it in GitHub Desktop.
Save number5/620335 to your computer and use it in GitHub Desktop.
my_list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
for item in my_list:
if item == 3 or item == 7:
my_list.remove(item)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment