



from __future__ import annotations

def        __a			(   __lowerCAmelCase      ,	__lowerCAmelCase   )     ->     list[str]:
					if nth_term == "":
										return [""]
					SCREAMING_SNAKE_CASE							:     Any						=				int(__lowerCAmelCase   )
					SCREAMING_SNAKE_CASE							:     List[str]						=				int(__lowerCAmelCase   )
					SCREAMING_SNAKE_CASE							:     list[str]						=				[]
					for temp in range(int(__lowerCAmelCase   )   ):
										series.append(F'''1 / {pow(temp + 1      ,	int(__lowerCAmelCase   )   )}''' if series else '1'   )
					return series


if __name__ == "__main__":
			import doctest

			doctest.testmod()

			_lowerCamelCase    :		Tuple		      =    int(input("""Enter the last number (nth term) of the P-Series"""))
			_lowerCamelCase    :		Optional[int]		      =    int(input("""Enter the power for  P-Series"""))
			print("""Formula of P-Series => 1+1/2^p+1/3^p ..... 1/n^p""")
			print(p_series(nth_term, power))




import requests

_lowerCamelCase    :		int		      =    """https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey="""

def        __a			(   __lowerCAmelCase   )     ->     None:
					# fetching a list of articles in json format
					SCREAMING_SNAKE_CASE							:     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>""")