def get_locations(data: dict) -> list:
    """
    Get users' locations from the dictionary. Return list of lists, every one
    of which contains user's nickname and location.
    >>> get_locations({'users': [{'screen_name': 'Alina', 'location':\
 'Lviv, Ukraine'}]})
    [['Alina', 'Lviv, Ukraine']]
    """
    result = []
    users = data['users']
    for user in users:
        name = user['screen_name']
        location = user['location']
        result.append([name, location])
    return result