Answer the question
In order to leave comments, you need to log in
How to recover a password?
Hi all!!!
I have had such a problem for a long time that I cannot recover the password from VK and mail. Haven't been there in over 6 years since 2015. I don't know what password I came up with, but I know for sure that I used combinations of certain words.
SO THIS!!!!! are there any scripts where from certain words, you can create all sorts of options for their location options?
For example:
word1
word2
word3
Combinations:
word1word2word3
word2word1word3
word3word2word1
and so on until final
Please help!!
Answer the question
In order to leave comments, you need to log in
python3:
import itertools
list = ["a", "bb", "ccc"] #тут список слов. использоватся могут в любом порядке, но не более одного раза каждое
result = []
for i in range(1,len(list)+1):
for iter in itertools.permutations(list,i):
result.append("".join(iter))
print(result)
['a', 'bb', 'ccc', 'abb', 'accc', 'bba', 'bbccc', 'ccca', 'cccbb', 'abbccc', 'acccbb', 'bbaccc', 'bbccca', 'cccabb', 'cccbba']
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question