1a_string = 'Hello World Hello'
2
3# In case we want to get a 'set' of chars
4print(set(a_string))
5# Output -> {'W', 'r', 'l', 'H', 'd', ' ', 'o', 'e'}
6
7# In case we want to get a 'set' of words
8print(set(a_string.split()))
9# Output -> {'Hello', 'World'}
10