Lets assume we have a list with names of people given as strings
people = ["john", "mike", "patrick", "vince", "mike"]
I want to have a list where instead of names there will be used other identifiers for this people, for example:
people_ids = ["p1", "p2", "p3", "p4", "p2"]
There are 2 things I want to point out:
1) the id format is not important, the numbering can start from 0, if it makes things easier
2) when a given name is repeated, i want the corresponding id to be repeated as well in the same position in people_ids
how do I achieve this? most probably using some dictionary stuff right?