





def  __lowerCamelCase     (			UpperCamelCase__				):







							'''simple docstring'''






							return "".join([hex(UpperCamelCase__				)[2:].zfill(2				).upper() for byte in list(UpperCamelCase__				)]				)





def  __lowerCamelCase     (			UpperCamelCase__				):







							'''simple docstring'''






							if (len(UpperCamelCase__				) % 2) != 0:
														raise ValueError(
														    'Base16 encoded data is invalid:\nData does not have an even number of hex digits.'				)
							# Check the character set - the standard base16 alphabet
							# is uppercase according to RFC3548 section 6
							if not set(UpperCamelCase__				) <= set('0123456789ABCDEF'				):
														raise ValueError(
														    'Base16 encoded data is invalid:\nData is not uppercase hex or it contains invalid characters.'				)
							# For every two hexadecimal digits (= a byte), turn it into an integer.
							# Then, string the result together into bytes, and return it.
							return bytes(int(data[i] + data[i + 1]       ,							16				) for i in range(0       ,							len(UpperCamelCase__				)       ,							2				)				)


if __name__ == "__main__":
					import doctest

					doctest.testmod()







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




