Created
December 14, 2019 13:19
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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