There are many ways to do this, but the most adequate way is using a
dictionary (also known as "associative array"):
http://docs.python.org/2/tutorial/datastructures.html#dictionaries[
^].
Here is assume that ultimately you would need to store names as dictionary keys and something else, some information related to names, otherwise such storage would be totally useless. However, if you wanted to store just objects without duplicates, the adequate Python structure would be a
set:
http://docs.python.org/2/tutorial/datastructures.html#sets[
^].
—SA