User Tools

Site Tools


get_unique_items_in_a_list

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
get_unique_items_in_a_list [2021/07/23 22:14] – [Task] rajuget_unique_items_in_a_list [2021/07/23 22:14] (current) – [Notes and assumptions] raju
Line 17: Line 17:
  
 ==== Notes and assumptions ==== ==== Notes and assumptions ====
-  * Assume Python >= 3.7 is used. 
   * Starting from Python 3.7, dictionaries in python are ordered by insertion order. Per https://docs.python.org/3.7/tutorial/datastructures.html#dictionaries <code>   * Starting from Python 3.7, dictionaries in python are ordered by insertion order. Per https://docs.python.org/3.7/tutorial/datastructures.html#dictionaries <code>
 Performing list(d) on a dictionary returns a list of all the keys used in the dictionary, in insertion order Performing list(d) on a dictionary returns a list of all the keys used in the dictionary, in insertion order
 </code> </code>
 +  * Assume Python >= 3.7 is used.
  
 ==== Case 1: unique unordered ==== ==== Case 1: unique unordered ====
get_unique_items_in_a_list.1627078440.txt.gz · Last modified: 2021/07/23 22:14 by raju