how can i generate specific wordlist

Here is a starting point for your homework.

>>> import random
>>> import strings
>>>
>>> string.ascii_lowercase
'abcdefghijklmnopqrstuvwxyz'
>>> 
>>> [c for c in string.ascii_lowercase ]
['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
>>> 
>>> 
>>> letters = [c for c in string.ascii_lowercase ]
>>> random.choice(letters)
'e'
>>> random.randint(1,6)
3
>>> random.randint(1,6)
6
>>>
/r/Python Thread