Fans of The Wire will appreciate this one. 
For those that haven't seen the show, the Barksdale Organization has a simple method for encoding telephone numbers exchanged via pagers: "Jump to the other side of the 5 on the keypad, and swap 5's and 0's."

Here's a keypad for visualization.
```
┌───┬───┬───┐
│ 1 │ 2 │ 3 │
├───┼───┼───┤
│ 4 │ 5 │ 6 │
├───┼───┼───┤
│ 7 │ 8 │ 9 │
└───┼───┼───┘
    │ 0 │
    └───┘
```

Detective, we're hot on their trail! We have a big pile of encoded messages here to use as evidence, but it would take way too long to decode by hand. Could you write a program to do this for us?


Write a funciton called decode(). Given an encoded string, return the actual phone number in string form. Don't worry about input validation, parenthesies, or hyphens.

Difficulty: EASY
Starter code: def decode(string):
	

Solutions:
def decode(s):
	return s.translate(str.maketrans('1234567890', '9876043215'))


def decode(string):
	return ''.join(['5987604321'[int(char)] for char in string])


def decode(string):
	return string.translate(str.maketrans('1234567890', '9876043215'))


def decode(string):
	key = {'1': '9', '2': '8', '3': '7', '4': '6', '5': '0', '6': '4', '7': '3', '8': '2', '9': '1', '0': '5'}
	return ''.join((key[char] for char in string))


def decode(string):
	cipher_map = {'0': '5', '1': '9', '2': '8', '3': '7', '4': '6', '5': '0', '6': '4', '7': '3', '8': '2', '9': '1'}
	return ''.join([cipher_map[s] for s in string])


def decode(string):
	return string.translate(str.maketrans('4103269578', '6957841032'))


def decode(plain):
	cipher = {'0': '5', '1': '9', '2': '8', '3': '7', '4': '6', '5': '0', '6': '4', '7': '3', '8': '2', '9': '1'}
	return ''.join((cipher[digit] for digit in plain))


def decode(string):
	cipher = {'1': '9', '2': '8', '3': '7', '4': '6', '5': '0', '6': '4', '7': '3', '8': '2', '9': '1', '0': '5'}
	return ''.join([cipher[x] for x in string])