Creating combination of sequences

Minho Chae minho_chae at yahoo.com
Sat Nov 13 19:26:29 CET 2004


Hello, python lovers!!

I'm trying to create combinations of sequences.

For example, if the sequence is 'acgt' and the length is 8,
then I would like to have 4^8 results such as
'aaaaaaaa', 'aaaaaaac', 'aaaaaaag', 'aaaaaaat', ... 'tttttttt'

Is there an easy way doing this?

Any help will be greatly appreciated.


Minho



More information about the Python-list mailing list