'''simple docstring'''





SCREAMING_SNAKE_CASE_:	dict[str, float]    ={
    "km/h": 1.0,
    "m/s": 3.6,
    "mph": 1.609344,
    "knot": 1.852,
}

SCREAMING_SNAKE_CASE_:	dict[str, float]    ={
    "km/h": 1.0,
    "m/s": 0.277777778,
    "mph": 0.621371192,
    "knot": 0.539956803,
}





def       lowerCAmelCase_							(   snake_case_			:					float   ,       snake_case_			:					str   ,       snake_case_			:					str     )       -> float:


     '''simple docstring'''




     if unit_to not in speed_chart or unit_from not in speed_chart_inverse:
          UpperCAmelCase_			       =  (
              f"""Incorrect 'from_type' or 'to_type' value: {unit_from!r}, {unit_to!r}\n"""
              f"""Valid values are: {", ".join(snake_case_     )}"""
          )
          raise ValueError(snake_case_     )
     return round(speed * speed_chart[unit_from] * speed_chart_inverse[unit_to]   ,       3     )


if __name__ == "__main__":
    import doctest

    doctest.testmod()









"""simple docstring"""




import requests

_lowerCAmelCase							:   List[Any]				=				"https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey="

def 		__snake_case		( SCREAMING_SNAKE_CASE__      :		str							)    ->  None:





     '''simple docstring'''

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