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!"

Difficulty: introductory

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):
    if oscar <= 88:
        return {86: 'Not even for Wolf of wallstreet?!',
                88: 'Leo finally won the oscar! Leo is happy'}.get(
            oscar, 'When will you give Leo an Oscar?')
    return 'Leo got one already!'


def leo(oscar):
    """Return string describing Leo based on 'oscar'.

    (int) -> str

    Conditions:
        - If 'oscar' was 88, you should return "Leo finally won the oscar! Leo is happy",
        - If 'oscar' was 86, you should return "Not even for Wolf of wallstreet?!",
        - If 'oscar' was not 88 or 86 (and below 88) you should return "When will you give Leo an Oscar?",
        - If 'oscar' was over 88 you should return "Leo got one already!"

    >>> leo(88)
    "Leo finally won the oscar! Leo is happy"

    Example test cases:
        - test.assert_equals(leo(85),"When will you give Leo an Oscar?")
        - test.assert_equals(leo(86),"Not even for Wolf of wallstreet?!")
        - test.assert_equals(leo(87),"When will you give Leo an Oscar?")
        - test.assert_equals(leo(88),"Leo finally won the oscar! Leo is happy")
        - test.assert_equals(leo(89),"Leo got one already!")
    """
    if oscar > 88:
        return "Leo got one already!"
    elif oscar == 88:
        return "Leo finally won the oscar! Leo is happy"
    elif oscar == 86:
        return "Not even for Wolf of wallstreet?!"
    else:
        return "When will you give Leo an Oscar?"

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 == 87 or oscar < 86:
        return  "When will you give Leo an Oscar?"
    else:
        return "Leo got one already!"


def leo(oscar):
    return  ("Leo got one already!",
             "When will you give Leo an Oscar?",
             "Not even for Wolf of wallstreet?!",
             "Leo finally won the oscar! Leo is happy")[(oscar == 86) + (oscar < 88) + 3 * (oscar == 88)]

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]

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

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

def leo(oscar):
    print(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?'
    return 'Leo got one already!'

def leo(oscar):
    oscar = int(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?"
    else:
        return "Leo got one already!"


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 or oscar != 86) and oscar < 88:
        return "When will you give Leo an Oscar?"
    else:
        return "Leo got one already!"


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 and oscar != 86:
        return "When will you give Leo an Oscar?"
    elif oscar > 88:
        return "Leo got one already!"

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):
    return "Not even for Wolf of wallstreet?!" if oscar==86 else "When will you give Leo an Oscar?" if oscar<88 else "Leo finally won the oscar! Leo is happy" if oscar == 88 else "Leo got one already!"

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!=86 or oscar!=88) and oscar<88:
        return "When will you give Leo an Oscar?"
    else:
        return  "Leo got one already!"


def leo(oscar: int) -> str:
    """ Will oscar go to Leonardo DiCaprio? """
    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)

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

def leo(o):
    return {
        o == 88: "Leo finally won the oscar! Leo is happy",
        o < 88: "When will you give Leo an Oscar?",
        o > 88: "Leo got one already!",
        o == 86: "Not even for Wolf of wallstreet?!"
    }[1]