Answer the question
In order to leave comments, you need to log in
How to get the number of possible combinations of elements with repetitions?
There is a string of 64 characters, you need to get the number of all possible combinations of these characters, 14 elements each.
For simplicity, I understand, let's take the string ABC and make all possible combinations of 3 elements from it
import itertools
for i in itertools.product('ABC', repeat=3):
print(''.join(i))
q = 0
for i in itertools.product('ABC', repeat=3):
q+=1
print(q)
_-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question