Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

no repetir elementos en una lista python

from collections import OrderedDict

myList = [2, 1, 2, 3, 0, 6, 7, 6, 8, 0, 4, 8]

myList.append(9)

final_list = list(OrderedDict.fromkeys(myList))

print(final_list)
Comment

PREVIOUS NEXT
Code Example
Python :: keras imagenet 
Python :: Get Today’s Year, Month, and Date using today method 
Python :: In interactive mode, the last printed expression is assigned to the variable _ 
Python :: scraped text in Russian encoding python 
Python :: Indices may also be negative numbers, to start counting from the right:Indices may also be negative numbers, to start counting from the right: 
Python :: do function for each 10sec with pyside2 
Python :: jittering(adding back rounded up values) 
Python :: bee swarm plot 
Python :: python keep program running after crash 
Python :: pypy tinytag 
Python :: python ternary mittels ganz schlimm 
Python :: convert depth image to point cloud 
Python :: sorting list of strings by length python 
Python :: visualising centroid of an unsupervised learning algorithm 
Python :: pandas read s3 object in jupyter notebook 
Python :: hashing algorithms in python 
Python :: django null first 
Python :: get a list of colors that appear of the image python 
Python :: How to convert Gender to numeric variable 
Python :: ERROR: Target path exists but is not a directory, will not continue. 
Python :: tuples of unique rows pandas 
Python :: python multiprocessing imap tqdm 
Python :: huffepuf 
Python :: np choose explain 
Python :: add values to add value in a matplotlib image 
Python :: gpt2 simple restore_from 
Python :: python pyinstler not found 
Python :: mass algorithm python 
Python :: mk virtual env 
Python :: Return the key-value pairs in this RDD to the master as a dictionary. 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =