





def  __lowerCamelCase     (			UpperCamelCase__				):







							'''simple docstring'''






							if not numbers:
														return 0

							if not isinstance(UpperCamelCase__       ,							(list, tuple)				) or not all(
							    isinstance(UpperCamelCase__       ,							UpperCamelCase__				) for number in numbers				):
														raise ValueError('numbers must be an iterable of integers'				)

							snake_case_          =   snake_case_          =   snake_case_          =   numbers[0]

							for i in range(1       ,							len(UpperCamelCase__				)				):
														# update the maximum and minimum subarray products
														snake_case_          =   numbers[i]
														if number < 0:
																					snake_case_    ,   snake_case_          =   min_till_now, max_till_now
														snake_case_          =   max(UpperCamelCase__       ,							max_till_now * number				)
														snake_case_          =   min(UpperCamelCase__       ,							min_till_now * number				)

														# update the maximum product found till now
														snake_case_          =   max(UpperCamelCase__       ,							UpperCamelCase__				)

							return max_prod







import requests

_UpperCAmelCase		:       Union[str, Any]						    =	"""https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey="""





def  __lowerCamelCase     (			UpperCamelCase__				):







							'''simple docstring'''






							snake_case_          =   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>""")




