*This is the second Kata in the Ciphers series. This series is meant to test our coding knowledge.*

## Ciphers #2 - The reversed Cipher
This is a lame method I use to write things such that my friends don't understand. It's still fairly readable if you think about it.

## How this cipher works
First, you need to reverse the string. Then, the last character in the original string (the first character in the reversed string) needs to be moved to the back. Words will be separated by spaces, and punctuation marks can be counted as part of the word.

## Example

This is because `"Hello"` reversed is `"olleH"` and `"o"` is moved to the back, and so on. The exclamation mark is considered to be part of the word `"World"`.

Have fun (en)coding!

Difficulty: introductory

Starter code:

def encode(s):
	

Solutions:
def encode(s):
    return ' '.join( w[-2::-1] + w[-1] for w in s.split() )

def encode(s):
    s, sub_s = s.split(' '), ''
    for char in s:
        sub_s += char[::-1][1:] + char[-1] + ' '
    return sub_s[:-1]

encode=lambda s:" ".join([i[::-1][1:]+i[::-1][0] for i in s.split()])

import re

def encode(s):
     return re.sub(r'\S+', lambda m: m.group()[-2::-1] + m.group()[-1], s)

def encode(s):
    return " ".join([i[:-1][::-1] + i[-1] for i in s.split(" ")])

def encode(s):
    first_to_last = lambda x: x[1:] + x[0]
    return ' '.join((first_to_last(x[::-1]) for x in s.split()))

def encode(s):
    k = ' '.join([i[::-1][1:] + i[::-1][0] for i in s.split(' ')])
    return k

def encode(s):
    return " ".join(x[-2::-1] + x[-1] for x in s.split())

def encode(s):
    r = []
    for x in s.split():
        x = x[::-1]
        r.append(x[1:] + x[0])
    return " ".join(r)

def encode(s):
    return ' '.join(i[::-1][1:] + i[::-1][0] for i in s.split() )