

"""simple docstring"""





def 						_A						(						UpperCamelCase_  : list,    UpperCamelCase_  : list,    UpperCamelCase_  : list,    UpperCamelCase_  : int,    UpperCamelCase_  : int)			->		None:
   '''simple docstring'''


   if target == 0:
      answer.append(path.copy())
   else:
      for index in range(UpperCamelCase_,    len(UpperCamelCase_)):
         if target >= candidates[index]:
            path.append(candidates[index])
            backtrack(UpperCamelCase_,    UpperCamelCase_,    UpperCamelCase_,    target - candidates[index],    UpperCamelCase_)
            path.pop(len(UpperCamelCase_) - 1)




def 						_A						(						UpperCamelCase_  : list,    UpperCamelCase_  : int)			->		list:
   '''simple docstring'''


   __lowercase			=		[]  # type: list[int]
   __lowercase			=		[]  # type: list[int]
   backtrack(UpperCamelCase_,    UpperCamelCase_,    UpperCamelCase_,    UpperCamelCase_,    0)
   return answer




def 						_A						(						)			->		None:
   '''simple docstring'''


   print(combination_sum([-8, 2.3, 0],    1))


if __name__ == "__main__":
   import doctest

   doctest.testmod()
   main()







"""simple docstring"""





import shutil

import requests




def 						_A						(						UpperCamelCase_  : str,    UpperCamelCase_  : bool = False,    UpperCamelCase_  : str = ".")			->		dict:
   '''simple docstring'''


   __lowercase			=		"https://api.nasa.gov/planetary/apod"
   return requests.get(UpperCamelCase_,    params={"api_key": api_key}).json()




def 						_A						(						UpperCamelCase_  : str,    UpperCamelCase_  : str = ".")			->		dict:
   '''simple docstring'''


   __lowercase			=		get_apod_data(UpperCamelCase_)
   __lowercase			=		apod_data["url"]
   __lowercase			=		img_url.split("/")[-1]
   __lowercase			=		requests.get(UpperCamelCase_,    stream=UpperCamelCase_)

   with open(F"""{path}/{img_name}""",    "wb+") as img_file:
      shutil.copyfileobj(response.raw,    UpperCamelCase_)
   del response
   return apod_data




def 						_A						(						UpperCamelCase_  : str)			->		dict:
   '''simple docstring'''


   __lowercase			=		"https://images-api.nasa.gov/search"
   return requests.get(UpperCamelCase_,    params={"q": query}).json()


if __name__ == "__main__":
   print(save_apod('YOUR API KEY'))
   _a				   =							get_archive_data('apollo 2011')['collection']['items']
   print(apollo_aaaa_items[0]['data'][0]['description'])




