

import math





def  __lowerCamelCase     (			UpperCamelCase__				):







							'''simple docstring'''






							return math.sqrt(UpperCamelCase__				) * math.sqrt(UpperCamelCase__				) == num





def  __lowerCamelCase     (			UpperCamelCase__				):







							'''simple docstring'''






							snake_case_          =   0
							snake_case_          =   n
							while left <= right:
														snake_case_          =   (left + right) // 2
														if mid**2 == n:
																					return True
														elif mid**2 > n:
																					snake_case_          =   mid - 1
														else:
																					snake_case_          =   mid + 1
							return False


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




