

import requests

a__				=		'''https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey='''



def    __UpperCAmelCase (	__a      :			str	)			->     None:

					"""simple docstring"""

					_a	:    List[str]         =		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>''')






from math import ceil



def    __UpperCAmelCase (	__a      :			int = 1_001	)			->     int:

					"""simple docstring"""

					_a	:    List[Any]         =		1

					for i in range(1		,int(ceil(n / 2.0	)	)	):
										_a	:    Optional[Any]         =		2 * i + 1
										_a	:    Optional[int]         =		2 * i
										_a	:    str         =		total + 4 * odd**2 - 6 * even

					return total


if __name__ == "__main__":
			import sys

			if len(sys.argv) == 1:
						print(solution())
			else:
						try:
									a__				=		int(sys.argv[1])
									print(solution(n))
						except ValueError:
									print('''Invalid entry - please enter a number''')



