
"""simple docstring"""



import requests

UpperCamelCase__          =	'https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey='
def 					lowerCamelCase   (     _snake_case ):
    # fetching a list of articles in json format
    UpperCAmelCase__	:      int     							=					requests.get(_NEWS_API + bbc_news_api_key ).json()
    # each article in the list is a dict
    for i, article in enumerate(bbc_news_page['articles']    ,1 ):
        print(F'''{i}.) {article['title']}''' )


if __name__ == "__main__":
    fetch_bbc_news(bbc_news_api_key='<Your BBC News API key goes here>')



"""simple docstring"""



from itertools import permutations
def 					lowerCamelCase   (     _snake_case ):
    if num[3] % 2 != 0:
        return False

    if (num[2] + num[3] + num[4]) % 3 != 0:
        return False

    if num[5] % 5 != 0:
        return False

    UpperCAmelCase__	:      List[str]     							=					[7, 11, 13, 17]
    for i, test in enumerate(_snake_case ):
        if (num[i + 4] * 100 + num[i + 5] * 10 + num[i + 6]) % test != 0:
            return False
    return True
def 					lowerCamelCase   (     _snake_case = 10 ):
    return sum(
        int(''.join(map(_snake_case    ,_snake_case ) ) )
        for num in permutations(range(_snake_case ) )
        if is_substring_divisible(_snake_case ) )


if __name__ == "__main__":
    print(f'{solution() = }')

