The function must return the sequence of titles that match the string passed as an argument. 

```if:javascript
TITLES is a preloaded sequence of strings. 
```

```python
titles = ['Rocky 1', 'Rocky 2', 'My Little Poney']
search(titles, 'ock') --> ['Rocky 1', 'Rocky 2']
```

But the function return some weird result and skip some of the matching results.

Does the function have special movie taste? 

Let's figure out !

Difficulty: introductory

Starter code:

def search(titles, term):
	

Solutions:
def search(titles, term): 
    return list(filter(lambda title: term in title.lower(), titles))

def search(titles, term): 
    return [ title for title in titles if term in title.lower() ]

search = lambda titles, term: list(filter(lambda title: term.lower() in title.lower(), titles))

def search(titles, term):
    term = term.casefold()
    return [t for t in titles if term in t.casefold()]

def search(titles, term): 
    term = term.lower()
    return [s for s in titles if term in s.lower()]

def search(titles, term):
    return list(filter(lambda title: term.lower() in title.lower(), titles))

def search(titles, term):
    return list(t for t in titles if term.lower() in t.lower())

def search(a, s):
    s = s.lower()
    return [x for x in a if s in x.lower()]

import re

def search(titles, term): 
    return [t for t in titles if re.search(term, t, re.I)]

def search(titles: list, term: str):
    import re
    return [title for title in titles if bool(re.search(term, title, re.IGNORECASE))]