Creating combination of sequences

Minho Chae minho_chae at yahoo.com
Sat Nov 13 13:26:29 EST 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