Skip to content
Snippets Groups Projects
Commit a00e9200 authored by Lukáš Krupčík's avatar Lukáš Krupčík
Browse files

Merge branch 'master' of code.it4i.cz:sccs/docs.it4i.cz into anselm2

parents 0faf788e 4b8fd45a
No related branches found
No related tags found
No related merge requests found
import itertools
import re
l = ['A', 'S', 'U', 'T']
mask = ''.join(reversed(l))
for i in range(1,len(l)+1):
for comb in itertools.combinations(l, i):
reg = "[^%s]" % ''.join(comb)
print re.sub(reg,"-", mask)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment