X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=cipher.py;h=0e89a9c01ebdbe60e9e29b16c0822093caca983c;hb=fd77917cdb88ba5746b31de4d62850cd038cf63b;hp=6b49d46974171e26edd615cdbb8e8a7985bf6720;hpb=36ca1e6815f68220d42758ee5bbf92c1de554490;p=cipher-tools.git diff --git a/cipher.py b/cipher.py index 6b49d46..0e89a9c 100644 --- a/cipher.py +++ b/cipher.py @@ -66,10 +66,10 @@ def every_nth(text, n): """Returns n strings, each of which consists of every nth character, starting with the 0th, 1st, 2nd, ... (n-1)th character - >>> every_nth(string.ascii_lowercase, 5) - ['afkpuz', 'bglqv', 'chmrw', 'dinsx', 'ejoty'] + >>> every_nth(string.ascii_lowercase, 5) + ['afkpuz', 'bglqv', 'chmrw', 'dinsx', 'ejoty'] >>> every_nth(string.ascii_lowercase, 1) - ['abcdefghijklmnopqrstuvwxyz'] + ['abcdefghijklmnopqrstuvwxyz'] >>> every_nth(string.ascii_lowercase, 26) ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] """