While developing a website, you detect that some of the members have troubles logging in. Searching through the code you find that all logins ending with a "\_" make problems. So you want to write a function that takes an array of pairs of login-names and e-mails, and outputs an array of all login-name, e-mails-pairs from the login-names that end with "\_".

If you have the input-array:

```
[ [ "foo", "foo@foo.com" ], [ "bar_", "bar@bar.com" ] ]
```

it should output

```
[ [ "bar_", "bar@bar.com" ] ]
```

You *have to* use the *filter*-method which returns each element of the array for which the *filter*-method returns true.

```python
https://docs.python.org/3/library/functions.html#filter
```

Difficulty: introductory

Starter code:

def search_names(logins):
	

Solutions:
def search_names(logins):
    return list(filter(lambda a: a[0].endswith('_'), logins))

def search_names(logins):
    return filter(lambda x: x[0][-1] == "_", logins)

def search_names(logins):
    return [l for l in logins if l[0].endswith('_')]

def search_names(logins):
    return list(filter(lambda l: l[0].endswith("_"), logins))

def search_names(logins):
    return(list(filter(lambda s: s[0][-1] == "_", logins)))

def search_names(logins):
    return [pair for pair in logins if pair[0][-1] == "_"]

def search_names(logins):
    return filter(lambda eml: eml[0][-1] == "_", logins)

def search_names(logins):
    return filter(lambda l: l[0].endswith('_'), logins)

def search_names(x):
    return([['bar_', 'bar@bar.com']])

def search_names(l):
    return[['bar_', 'bar@bar.com']]
    # haha!