How To Find All Non repeat Elements In A PYTHON ARRAY

Python

Video is ready, Click Here to View ×


How To Find All Non repeat Elements In A PYTHON ARRAY

Done in 2 ways with a small variation

11 thoughts on “How To Find All Non repeat Elements In A PYTHON ARRAY

  1. Just curious why you wrote if item[1] == y[0][1] and not item[1]== 1 because if you had a string 'aabbbcccc' it wouldnt return none it would return a since in this case y[0][1] = 2 and a is the only instance with two. so it wouldnt be returning the unique item, it would just be returning the item with the least instances.

Leave a Reply

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