"""simple docstring"""







def 	a__   (		UpperCAmelCase__							:      list		,      UpperCAmelCase__							:      list      )->						list:
						UpperCAmelCase__       						=		len(UpperCAmelCase__      )
						UpperCAmelCase__       						=		len(UpperCAmelCase__      )
						UpperCAmelCase__       						=		(
						    first_input_list_length
						    if first_input_list_length > second_input_list_length
						    else second_input_list_length
						)
						UpperCAmelCase__       						=		[]
						for char_count in range(UpperCAmelCase__      ):
												if char_count < first_input_list_length:
																		output_result_list.append(first_input_list[char_count]      )
												if char_count < second_input_list_length:
																		output_result_list.append(second_input_list[char_count]      )

						return output_result_list


if __name__ == "__main__":
						print(alternative_list_arrange(["""A""", """B""", """C"""], [1, 2, 3, 4, 5]), end=""" """)


"""simple docstring"""







import shutil

import requests


def 	a__   (		UpperCAmelCase__							:      str		,      UpperCAmelCase__							:      bool = False		,      UpperCAmelCase__							:      str = "."      )->						dict:
						UpperCAmelCase__       						=		"""https://api.nasa.gov/planetary/apod"""
						return requests.get(UpperCAmelCase__		,      params={"""api_key""": api_key}      ).json()


def 	a__   (		UpperCAmelCase__							:      str		,      UpperCAmelCase__							:      str = "."      )->						dict:
						UpperCAmelCase__       						=		get_apod_data(UpperCAmelCase__      )
						UpperCAmelCase__       						=		apod_data["""url"""]
						UpperCAmelCase__       						=		img_url.split("""/"""      )[-1]
						UpperCAmelCase__       						=		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:
						UpperCAmelCase__       						=		"""https://images-api.nasa.gov/search"""
						return requests.get(UpperCAmelCase__		,      params={"""q""": query}      ).json()


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

