projects
/
cipher-training.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
e67dfbd
)
Merging back into solutions
author
Neil Smith
<neil.git@njae.me.uk>
Mon, 14 Jul 2014 18:56:26 +0000
(19:56 +0100)
committer
Neil Smith
<neil.git@njae.me.uk>
Mon, 14 Jul 2014 18:56:26 +0000
(19:56 +0100)
cipher.py
patch
|
blob
|
history
diff --git
a/cipher.py
b/cipher.py
index d284afe94e0534b3e11fe6f819fc81d5fe6061db..d2438b720693c6abc231b827fe26a8d5ce52dddf 100644
(file)
--- a/
cipher.py
+++ b/
cipher.py
@@
-62,7
+62,6
@@
def chunks(text, n, fillvalue=None):
padding = ''
return [(text+padding)[i:i+n] for i in range(0, len(text), n)]
-
def deduplicate(text):
"""If a string contains duplicate letters, remove all but the first. Retain
the order of the letters.