I am wanting a program that takes in a string. For example, let's say: staff. Now what the program **should** do is run every single letter in that string. For example: I tried to give each letter a value

```
alphkey = {'a':1, 'b':2, 'c':3}

```

and so on... It should not be able to have a string combo like aaaa because the word staff has 2 f's in it and the rest are different. It should not be able to give for example two letters assigned to another letter. so ff in staff could be the same but the rest different.

I am just asking how could I do this on my own.
For example:
staff could return dsegg or welbb or even staff.
Thank You