'''simple docstring'''


from __future__ import annotations

def   A_      (       SCREAMING_SNAKE_CASE_ ,	SCREAMING_SNAKE_CASE_						)			->list[str]:
  if nth_term == "":
    return [""]
  lowercase_     =       int(SCREAMING_SNAKE_CASE_						)
  lowercase_     =       int(SCREAMING_SNAKE_CASE_						)
  lowercase_     =       []
  for temp in range(int(SCREAMING_SNAKE_CASE_						)						):
    series.append(f"""1 / {pow(temp + 1 ,	int(SCREAMING_SNAKE_CASE_						)						)}""" if series else """1"""						)
  return series


if __name__ == "__main__":
       import doctest

       doctest.testmod()

       __snake_case						  =		int(input("""Enter the last number (nth term) of the P-Series"""))
       __snake_case						  =		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))


'''simple docstring'''


import requests

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

def   A_      (       SCREAMING_SNAKE_CASE_						)			->None:
  # fetching a list of articles in json format
  lowercase_     =       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>""")

