Saturday, April 18, 2015

Python: Removing Same Elements in a List Without Sorting It

This has the exact same idea with the earlier JavaScript post with almost the same title.
In this, I "translated" the JavaScript language into Python language.
Python

Added shorter version April 22, 2015
Shorter version

#1 Result in Python's command terminal (1st version)
#1 Filtering duplicates in an array with Python

#2 Result in Python's command terminal (shorter version)
#2 Filtering duplicates in an array with Python
This will leave the original array (list) intact, no changes.

No comments:

Post a Comment

Tell me what you think...