'''simple docstring'''




import math






def 				snake_case__							(			_A:					int )    ->	Optional[int]:

		'''simple docstring'''


		lowerCAmelCase   					=  0
		lowerCAmelCase   					=  0
		while num > 0:
				lowerCAmelCase   					=  num % 8
				lowerCAmelCase   					=  octal + (remainder * math.floor(math.pow(10      ,   __lowerCAmelCase ) ))
				counter += 1
				lowerCAmelCase   					=  math.floor(num / 8 )  # basically /= 8 without remainder if any
				# This formatting removes trailing '.0' from `octal`.
		return f"0o{int(__lowerCAmelCase )}"






def 				snake_case__							(			)    ->	Any:

		'''simple docstring'''


		print("""\n2 in octal is:""" )
		print(decimal_to_octal(2 ) )  # = 2
		print("""\n8 in octal is:""" )
		print(decimal_to_octal(8 ) )  # = 10
		print("""\n65 in octal is:""" )
		print(decimal_to_octal(65 ) )  # = 101
		print("""\n216 in octal is:""" )
		print(decimal_to_octal(216 ) )  # = 330
		print("""\n512 in octal is:""" )
		print(decimal_to_octal(512 ) )  # = 1000
		print("""\n""" )


if __name__ == "__main__":
						main()






import requests

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






def    lowerCamelCase__				(				__lowerCAmelCase  :  str				):




			"""simple docstring"""


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



