


'''simple docstring'''


import requests

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







def 			snake_case_   (  SCREAMING_SNAKE_CASE__     ):







				"""simple docstring"""





				_SCREAMING_SNAKE_CASE :       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>')








'''simple docstring'''


from collections import defaultdict
from math import ceil, sqrt







def 			snake_case_   (  SCREAMING_SNAKE_CASE__ = 100_0000							,      SCREAMING_SNAKE_CASE__ = 10     ):







				"""simple docstring"""





				_SCREAMING_SNAKE_CASE :       defaultdict     		=      defaultdict(SCREAMING_SNAKE_CASE__     )

				for outer_width in range(3							,      (t_limit // 4) + 2     ):
								if outer_width * outer_width > t_limit:
												_SCREAMING_SNAKE_CASE :       int     		=      max(
												    ceil(sqrt(outer_width * outer_width - t_limit     )     )							,      1     )
								else:
												_SCREAMING_SNAKE_CASE :       List[str]     		=      1

								hole_width_lower_bound += (outer_width - hole_width_lower_bound) % 2

								for hole_width in range(SCREAMING_SNAKE_CASE__							,      outer_width - 1							,      2     ):
												count[outer_width * outer_width - hole_width * hole_width] += 1

				return sum(1 for n in count.values() if 1 <= n <= 10     )


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




