Answer the question
In order to leave comments, you need to log in
How to implement a simple python script?
How can I implement that the script accepts a text, example:
word
word1
word2
!
@
[email protected]
@#$%
%
Answer the question
In order to leave comments, you need to log in
1. itertools.permutations(), itertools.products(), itertools.combinations_with_replacement(). Choose which behavior you want, they are slightly different.
2. There will be VERY many such combinations - up to 2^N, where N is the length of the original string. To present, 16 letters (namely letters) will give 65536 combinations. Do you really need it?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question