here can you explain what is the advantage of “not in”

Home / Uncategorized / here can you explain what is the advantage of “not in”

Question:
sList=[‘a’,’b’,’c’,’d’,’a’,’b’,’c’]
duplicates=[]
for value in sList:if sList.count(value)>1:if value not in duplicates:duplicates.append(value)
print(duplicates)


Answer:

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *