Skip to content

Instantly share code, notes, and snippets.

@Turux
Created January 27, 2021 09:21
Show Gist options
  • Save Turux/e8a248a7431aca7e2cd38d83b7c92628 to your computer and use it in GitHub Desktop.
Save Turux/e8a248a7431aca7e2cd38d83b7c92628 to your computer and use it in GitHub Desktop.
A Python function that returns a list of unique elements in a list
def unique(input_list):
result=list(set(input_list))
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment