Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (9 sloc) 263 Bytes
#!/usr/bin/python
def lexi(alphabet,z):
if z>0:
for t in alphabet:
yield t
for x in lexi(alphabet,z-1):
yield t+x
for x in lexi(['P','D','E','W','H','Y','V','O','J','U','R','Q'],4):
print x
You can’t perform that action at this time.