Question: need code in python 3 I have a next list list: ['1.txt ', '2.txt ', '3.txt ', '2.txt ', '3.txt ', '3.txt ', '4.txt ',
need code in python 3 I have a next list "list":
['1.txt ', '2.txt ', '3.txt ', '2.txt ', '3.txt ', '3.txt ', '4.txt ', '5.txt ', '7.txt ', '3.txt ', '4.txt ', '5.txt ', '7.txt ', '5.txt ', '7.txt ', '6.txt ']
I need create function that checks all list and remove all copies. that means that output of "list"need look like: ['1.txt ', '2.txt ', '3.txt ', '4.txt ', '5.txt ', '7.txt ', '6.txt ']
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
