

def  __lowerCamelCase     (			UpperCamelCase__				):







							'''simple docstring'''






							snake_case_          =   []
							if len(UpperCamelCase__				) == 1:
														return [nums.copy()]
							for _ in range(len(UpperCamelCase__				)				):
														snake_case_          =   nums.pop(0				)
														snake_case_          =   permute(UpperCamelCase__				)
														for perm in permutations:
																					perm.append(UpperCamelCase__				)
														result.extend(UpperCamelCase__				)
														nums.append(UpperCamelCase__				)
							return result





def  __lowerCamelCase     (			UpperCamelCase__				):







							'''simple docstring'''






							def backtrack(UpperCamelCase__				):
														if start == len(UpperCamelCase__				) - 1:
																					output.append(nums[:]				)
														else:
																					for i in range(UpperCamelCase__       ,							len(UpperCamelCase__				)				):
																												snake_case_    ,   snake_case_          =   nums[i], nums[start]
																												backtrack(start + 1				)
																												snake_case_    ,   snake_case_          =   nums[i], nums[start]  # backtrack

							snake_case_          =   []
							backtrack(0				)
							return output


if __name__ == "__main__":
					import doctest

					# use res to print the data in permute2 function
					_UpperCAmelCase		:       int						    =	permutea([1, 2, 3])
					print(res)
					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>""")




