#!/usr/bin/env python
a = ['John','Peter','Dick','John','Dick'] #create a list of 10 elements
b = set(a)#set function looks for unique elements only
print (b)

8c9e586b55c1db88a4044372893ae3d915aa3628
<mask token>

<mask token>
print(b)

a = ['John', 'Peter', 'Dick', 'John', 'Dick']
b = set(a)
print(b)

#!/usr/bin/env python
a = ['John','Peter','Dick','John','Dick'] #create a list of 10 elements
b = set(a)#set function looks for unique elements only
print (b)
