Skip to content

Instantly share code, notes, and snippets.

@SANTOSHSHARMA11
Created December 14, 2019 13:19
Show Gist options
  • Save SANTOSHSHARMA11/7180c5df491083f20e75900276764617 to your computer and use it in GitHub Desktop.
Save SANTOSHSHARMA11/7180c5df491083f20e75900276764617 to your computer and use it in GitHub Desktop.
It will remove repetative value from tuple and list according to user define
a = [1, 2, 3, 4, 7, 7, 4]
b = []
for i in a:
if i not in b:
b.append(i)
print(b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment