You have to write a function that describe Leo:
```python
def leo(oscar):
  pass
```

if oscar was (integer) 88, you have to return "Leo finally won the oscar! Leo is happy".
if oscar was 86, you have to return "Not even for Wolf of wallstreet?!"
if it was not 88 or 86 (and below 88) you should return "When will you give Leo an Oscar?"
if it was over 88 you should return "Leo got one already!"

Source: codewars | Difficulty: EASY
Tags: Fundamentals

Starter code: def leo(oscar):
	

Solutions:
def leo(oscar):
	if oscar == 88:
		return 'Leo finally won the oscar! Leo is happy'
	elif oscar == 86:
		return 'Not even for Wolf of wallstreet?!'
	elif oscar < 88:
		return 'When will you give Leo an Oscar?'
	elif oscar > 88:
		return 'Leo got one already!'


def leo(oscar):
	r = ['Leo finally won the oscar! Leo is happy', 'Not even for Wolf of wallstreet?!', 'When will you give Leo an Oscar?', 'Leo got one already!']
	return r[0] if oscar == 88 else r[1] if oscar == 86 else r[2] if oscar == 87 or oscar < 86 else r[3]


rules = [(lambda x: x == 88, 'Leo finally won the oscar! Leo is happy'), (lambda x: x == 86, 'Not even for Wolf of wallstreet?!'), (lambda x: x < 88, 'When will you give Leo an Oscar?'), (lambda x: True, 'Leo got one already!')]
leo = lambda oscar: next((text for (predicate, text) in rules if predicate(oscar)))


leo = lambda o: ['Not even for Wolf of wallstreet?!', 'When will you give Leo an Oscar?', 'Leo got one already!', 'Leo finally won the oscar! Leo is happy'][(o != 86) + (o >= 88) + (o == 88)]


def leo(oscar: int) -> str:
	return {oscar == 88: 'Leo finally won the oscar! Leo is happy', oscar == 86: 'Not even for Wolf of wallstreet?!', oscar not in (86, 88) and oscar <= 87: 'When will you give Leo an Oscar?', oscar > 88: 'Leo got one already!'}.get(True)