'''simple docstring'''





import requests

lowerCAmelCase_	:		Optional[int]			=     '''https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey='''
def 						__A							(     UpperCAmelCase					)     ->			Dict:




						'''simple docstring'''
						_UpperCamelCase			:			Union[str, Any]   			=						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 __future__ import annotations

from cmath import sqrt
def 						__A							(     UpperCAmelCase     ,UpperCAmelCase     ,UpperCAmelCase					)     ->			tuple[complex, complex]:




						'''simple docstring'''

						if a == 0:
												raise ValueError("Coefficient 'a' must not be zero."					)
						_UpperCamelCase			:			List[str]   			=						b * b - 4 * a * c

						_UpperCamelCase			:			Dict   			=						(-b + sqrt(UpperCAmelCase					)) / (2 * a)
						_UpperCamelCase			:			Optional[int]   			=						(-b - sqrt(UpperCAmelCase					)) / (2 * a)

						return (
						    root_a.real if not root_a.imag else root_a,
						    root_a.real if not root_a.imag else root_a,
						)
def 						__A							(     )     ->			List[Any]:




						'''simple docstring'''
						_UpperCamelCase			,       _UpperCamelCase			:			Any   			=						quadratic_roots(a=5     ,b=6     ,c=1					)
						print(f'''The solutions are: {solutiona} and {solutiona}'''					)


if __name__ == "__main__":
			main()


