While you can do this, as Jacobson showed you in his answer (excellent), you should not save the letters manually in your own variables. Because you often donβt know the password length. So what you can do is repeat your characters:
for letter in yourString{
source share