



'''simple docstring'''




import requests

a     :    str      						=					"""YOUR API KEY"""



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


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






'''simple docstring'''




import math



def    __lowerCamelCase						(      _lowercase	)   ->    bool:
							assert isinstance(_lowercase			,       _lowercase	) and (
							    number >= 0
							), "'number' must been an int and positive"

							if 1 < number < 4:
														# 2 and 3 are primes
														return True
							elif number < 2 or not number % 2:
														# Negatives, 0, 1 and all even numbers are not primes
														return False

							UpperCAmelCase  :	str							  =	range(3			,       int(math.sqrt(_lowercase	) + 1	)			,       2	)
							return not any(not number % i for i in odd_numbers	)



def    __lowerCamelCase						(      _lowercase			,       _lowercase=1			,       **_lowercase	)   ->    Union[str, Any]:
							UpperCAmelCase  :	Optional[int]							  =	factor * value
							UpperCAmelCase  :	List[Any]							  =	value

							while not is_prime(_lowercase	):
														value += 1 if not ("desc" in kwargs and kwargs["desc"] is True) else -1

							if value == first_value_val:
														return next_prime(value + 1			,       **_lowercase	)
							return value

