import requests


def get_user_friends_locations_list(
        bearer_token: str, screen_name: str, friends_num: int=50
    ) -> list:
    """
    This function gets user's friends list consisting of name-location pairs.
    """
    base_url = 'https://api.twitter.com/'
    search_headers = {
        'Authorization': f'Bearer {bearer_token}'
    }
    search_params = {
        'screen_name': f'{screen_name}',
        'count': friends_num
    }
    search_url = f'{base_url}1.1/friends/list.json'
    response = requests.get(
        search_url, headers=search_headers, params=search_params
    )

    data = response.json()

    return [
        (user['name'], user['location'])
        for user in data['users']
        if len(user['location']) != 0
    ]