Skip to content

Instantly share code, notes, and snippets.

@mvallebr
Created January 21, 2021 18:01
Show Gist options
  • Select an option

  • Save mvallebr/47c719c9f533d7ecd7bbbf73f0787188 to your computer and use it in GitHub Desktop.

Select an option

Save mvallebr/47c719c9f533d7ecd7bbbf73f0787188 to your computer and use it in GitHub Desktop.
def delete_nth(order,max_e):
result = []
for index in range(len(order)):
if result.count(order[index]) < max_e:
result.append(order[index])
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment