The Story:
Aliens from Kepler 27b have immigrated to Earth! They have learned English and go to our stores, eat our food, dress like us, ride Ubers, use Google, etc. However, they speak English a little differently. Can you write a program that converts our English to their Alien English?

Task:

Write a function converting their speech to ours. They tend to speak the letter `a` like `o` and `o` like a `u`.
```python
>>> convert('hello')
'hellu'
>>> convert('codewars')
'cudewors'
```

Source: codewars | Difficulty: EASY
Tags: String algorithms

Fundamentals

Starter code: def convert(st):
	

Solutions:
def convert(st):
	return st.replace('o', 'u').replace('a', 'o')


def convert(s):
	return s.translate(str.maketrans('ao', 'ou'))


def convert(st):
	return st.translate(str.maketrans('ao', 'ou'))


def convert(st):
	return st.translate(str.maketrans('oa', 'uo'))


def convert(stg):
	alien = str.maketrans('ao', 'ou')
	return stg.translate(alien)


trans = str.maketrans('ao', 'ou')
convert = lambda st: st.translate(trans)


def convert(english):
	alien_english = english.replace('o', 'u').replace('a', 'o')
	return alien_english


def convert(st):
	for (x, y) in [['o', 'u'], ['a', 'o']]:
		st = st.replace(x, y)
	return st


convert = lambda s: s.translate({97: 111, 111: 117})