I would like to know what's wrong with my code:
import random
dicoRdm = {}
i = 0
z = 0
for i in range(0, 7) :
rdmLetters = str(random.sample("bmkSL35", 7))
for z in range(0, 7) :
rdmLetters = "".join(rdmLetters)
z += 1
dicoRdm[i] = rdmLetters
i += 1
What I would like to do is a dictionary which is generating 6 random strings in an order from 1 to 6. I would like to know why is my code not working as I expected. The generation works well but it appears that the dictionnary contains only letter by letter and not an actual word randomly generated. The key (0, 1, 2, 3, etc.) association works but the issue is only in the string association with its respective key. They're all seperated as you can see in the picutre:
I was expecting to get something like
{0: 'bhdlsSLm', 1: 'bdHsSmL', ...}