
'''simple docstring'''




import requests

lowercase			:				List[str]    		=			'YOUR API KEY'







def 		lowerCAmelCase_				(   snake_case__		,				snake_case__ = giphy_api_key						):




    '''simple docstring'''



    A       :   str					=						'''+'''.join(query.split()						)
    A       :   Optional[Any]					=						F'https://api.giphy.com/v1/gifs/search?q={formatted_query}&api_key={api_key}'
    A       :   Any					=						requests.get(snake_case__						).json()['''data''']
    return [gif["url"] for gif in gifs]


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





from functools import lru_cache




@lru_cache
def       _snake_case	(   lowerCAmelCase							:   int	):
		"""simple docstring"""







		if num < 0:
				raise ValueError("Number should not be negative."	)

		return 1 if num in (0, 1) else num * factorial(num - 1	)


if __name__ == "__main__":
		import doctest

		doctest.testmod()
