kevin parks wrote:
Hi folks,
I am trying to cyclically rotate a seq until it reached the beginning
stage again.
I would like to be able
BTW collections.deque supports most list methods and rotate():
http://docs.python.org/lib/module-collections.html
Kent
__
kevin parks wrote:
Hi folks,
I am trying to cyclically rotate a seq until it reached the beginning
stage again.
I would like to be able to rotate in both directions and using any
arbitrary interval.
I think the code is correct but I have a few suggestions below.
#!/usr/bin/env python
import sys
i
Hi folks,
I am trying to cyclically rotate a seq until it reached the beginning
stage again.
I would like to be able to rotate in both directions and using any
arbitrary interval.
I think that I have this correct, but would be happy for someone to
check it and also
i am interested in any improve