Sep-18-2017, 11:27 PM
I have a list of student numbers which looks like this (except the numbers are like 1625010201 and the list is longer):
['123','123','123','456', '456', '456', '789', '789', '789']
What is the best way to get rid of identical entries, so that my list then will look like:
['123', '456', '789']
I've been trying various loops but I can't seem to get it right. Grateful for any tips!
['123','123','123','456', '456', '456', '789', '789', '789']
What is the best way to get rid of identical entries, so that my list then will look like:
['123', '456', '789']
I've been trying various loops but I can't seem to get it right. Grateful for any tips!