How do you remove duplicates from a list while ignoring order in Python?
Correct answer
C. list(set(items))
C. list(set(items))
Converting to a set removes duplicates; convert back to a list if needed.
Asked in: Python Interview Sets
https://docs.python.org/3/tutorial/datastructures.html#setsNot sure why the answer is C? Ask here and get an explanation.