Hi guys,
I'm today start in Python so i have two questions.
1)I want to generate all possible characters.I'm do it,but i don't have idea how that I start from "abab" for example,i don't want to start from begin every time.("a")
2)
I have problem when i use repeat 6 + in this line:
#Errors
Thanks
I'm fix second problem,i use:
I'm today start in Python so i have two questions.
1)I want to generate all possible characters.I'm do it,but i don't have idea how that I start from "abab" for example,i don't want to start from begin every time.("a")
keywords = [''.join(i) for i in product(ascii_lowercase, repeat = x)]So i just want that I can start from certain characters.
2)
I have problem when i use repeat 6 + in this line:
keywords = [''.join(i) for i in product(ascii_lowercase, repeat = 6)]When I use repeat = 5 all works :/
#Errors
Error:Traceback (most recent call last):
File "C:\Users\paulc\Desktop\test.py", line 15, in <module>
keywords = [''.join(i) for i in product(ascii_lowercase, repeat = 6)]
File "C:\Users\paulc\Desktop\test.py", line 15, in <listcomp>
keywords = [''.join(i) for i in product(ascii_lowercase, repeat = 6)]
MemoryError
I hope you can understand me!Thanks
I'm fix second problem,i use:
keywords = map(''.join, product(ascii_lowercase, repeat=6))And all is ok.