five/five.py
def rotate(self, word):
        """Replaced by a letter 5 right shift.
         e.g. a->f, b->g, . -> ."""
        before = string.printable[:62]
        after = ''.join([i[5:] + i[:5] for i in [string.digits,
                                                 string.ascii_lowercase,
                                                 string.ascii_uppercase]])
        table = dict(zip(before, after))
        processed_word = [table[i] if i in before else i for i in word]
        return ''.join(processed_word)
def rotate(self, word):
        """Replaced by a letter 5 right shift.
         e.g. a->f, b->g, . -> ."""
        before = string.printable[:62]
        after = ''.join([i[5:] + i[:5] for i in [string.digits,
                                                 string.ascii_lowercase,
                                                 string.ascii_uppercase]])
        table = dict(zip(before, after))
        processed_word = [table[i] if i in before else i for i in word]
        return ''.join(processed_word)
def rotate ( self , word ) : before = string . printable [ : 62 ] after = '' . join ( [ i [ 5 : ] + i [ : 5 ] for i in [ string . digits , string . ascii_lowercase , string . ascii_uppercase ] ] ) table = dict ( zip ( before , after ) ) processed_word = [ table [ i ] if i in before else i for i in word ] return '' . join ( processed_word )
Replaced by a letter 5 right shift.
         e.g. a->f, b->g, . -> .
Replaced by a letter 5 right shift . e . g . a - > f b - > g . - > .