Python Programming - Lists - Discussion
Discussion Forum : Lists - General Questions (Q.No. 35)
35.
How can you create a new list containing only the unique elements from an existing list in Python?
Answer: Option
Explanation:
Using
set()
to remove duplicates and then converting it back to a list creates a new list with unique elements.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers