You have managed to intercept an important message and you are trying to read it.

You realise that the message has been encoded and can be decoded by switching each letter with a corresponding letter.

You also notice that each letter is paired with the letter that it coincides with when the alphabet is reversed.

For example: "a" is encoded with "z", "b" with "y", "c" with "x", etc

You read the first sentence:
```
"r slkv mlylwb wvxlwvh gsrh nvhhztv"
```

After a few minutes you manage to decode it:
```
"i hope nobody decodes this message"
```
Create a function that will instantly decode any of these messages

You can assume no punctuation or capitals, only lower case letters, but remember spaces!

Difficulty: introductory

Starter code:

def decode(message):
	

Solutions:
from string import ascii_lowercase as alphabet


def decode(message):
    return message.translate(str.maketrans(alphabet, alphabet[::-1]))

def decode(message):
    return message.translate(str.maketrans('abcdefghijklmnopqrstuvwxyz','zyxwvutsrqponmlkjihgfedcba'))

def decode(message):
    return ''.join([chr(ord('z')-(ord(x)-ord('a'))) if x!=' ' else ' ' for x in list(message)])

def decode(m):
    return m.translate({k: v for k, v in zip(range(97, 123), range(122, 96, -1))})

def decode(message):
    output = ''
    for letter in message:
        if letter != " ":
            output += chr(ord("z") - (ord(letter) - ord("a")))
        else:
            output += letter
    return output


from string import ascii_lowercase as abc

def decode(message):
    cipher_map = dict(zip(list(abc[::-1]), list(abc)))
    
    return ''.join([cipher_map[c] if c in cipher_map else c for c in message])

from string import ascii_lowercase as alphabet

def decode(message):
    dictionary = str.maketrans(alphabet, alphabet[::-1])
    return message.translate(dictionary)

def decode(message):
    import string
    ltrs = dict(list(zip(string.ascii_lowercase, string.ascii_lowercase[::-1])))
    return ''.join(ltrs.get(c, ' ') for c in message)


decode=lambda s:''.join(chr(219-ord(c)-155*(c<'a'))for c in s)

def decode(message):
    res=""
    c=0
    for i in range(0, len(message)):
        if message[i]=="a":
            res+="z"
        elif message[i]=="z":
            res+="a"
        elif message[i]=="b":
            res+="y"
        elif message[i]=="y":
            res+="b"
        elif message[i]=="c":
            res+="x"
        elif message[i]=="x":
            res+="c"
        elif message[i]=="d":
            res+="w"
        elif message[i]=="w":
            res+="d"
        elif message[i]=="e":
            res+="v"
        elif message[i]=="v":
            res+="e"
        elif message[i]=="f":
            res+="u"
        elif message[i]=="u":
            res+="f"
        elif message[i]=="g":
            res+="t"
        elif message[i]=="t":
            res+="g"
        elif message[i]=="h":
            res+="s"
        elif message[i]=="s":
            res+="h"
        elif message[i]=="i":
            res+="r"
        elif message[i]=="r":
            res+="i"
        elif message[i]=="j":
            res+="q"
        elif message[i]=="q":
            res+="j"
        elif message[i]=="k":
            res+="p"
        elif message[i]=="p":
            res+="k"
        elif message[i]=="l":
            res+="o"
        elif message[i]=="o":
            res+="l"
        elif message[i]=="m":
            res+="n"
        elif message[i]=="n":
            res+="m"
        else:
            res+=" "
    return res