set is a very useful tool in python.
You can set a set like this:
s = set(['.', c])
# so . and c is included in the set s
# also, we can add items to the set s like this:
<span><span>s.add(['R'])
</span></span>
if one item is already in the set s, it cannot be added to the set s again.