


import requests

_snake_case	:						Optional[Any]         =							"YOUR API KEY"







def 							lowerCAmelCase_	(   __lowerCamelCase				,      __lowerCamelCase = giphy_api_key      ):
							__snake_case						:     Optional[int]									=  "+".join(query.split()      )
							__snake_case						:     List[Any]									=  F'https://api.giphy.com/v1/gifs/search?q={formatted_query}&api_key={api_key}'
							__snake_case						:     Any									=  requests.get(__lowerCamelCase      ).json()["data"]
							return [gif["url"] for gif in gifs]


if __name__ == "__main__":
			print("\n".join(get_gifs("space ship")))








"""simple docstring"""



def 						__lowercase	(  snake_case_    :    list		)  ->float:



    '''simple docstring'''







    __A       :		Tuple							=	0
    while len(snake_case_		) > 1:
        __A       :		List[Any]							=	0
        # Consider two files with minimum cost to be merged
        for _ in range(2		):
            __A       :		Dict							=	files.index(min(snake_case_		)		)
            temp += files[min_index]
            files.pop(snake_case_		)
        files.append(snake_case_		)
        optimal_merge_cost += temp
    return optimal_merge_cost


if __name__ == "__main__":
       import doctest

       doctest.testmod()




