
def 			lowerCAmelCase_			(  lowerCamelCase:       Union[str, Any] = 99_80_01						)					->			int:


      '''simple docstring'''




      for number in range(n - 1     ,				99_99     ,				-1						):
            lowerCamelCase__        =				str(lowerCamelCase						)

            # checks whether 'str_number' is a palindrome.
            if str_number == str_number[::-1]:
                  lowerCamelCase__        =				9_99

                  # if 'number' is a product of two 3-digit numbers
                  # then number is the answer otherwise fetch next number.
                  while divisor != 99:
                        if (number % divisor == 0) and (len(str(number // divisor						)						) == 3.0):
                              return number
                        divisor -= 1
      raise ValueError('That number is larger than our acceptable range.'						)


if __name__ == "__main__":
      print(F"""{solution() = }""")





import shutil

import requests

def 			lowerCAmelCase_			(  lowerCamelCase:       str     ,				lowerCamelCase:       bool = False     ,				lowerCamelCase:       str = "."						)					->			dict:


      '''simple docstring'''




      lowerCamelCase__        =				'https://api.nasa.gov/planetary/apod'
      return requests.get(lowerCamelCase     ,				params={'api_key': api_key}						).json()

def 			lowerCAmelCase_			(  lowerCamelCase:       str     ,				lowerCamelCase:       str = "."						)					->			dict:


      '''simple docstring'''




      lowerCamelCase__        =				get_apod_data(lowerCamelCase						)
      lowerCamelCase__        =				apod_data['url']
      lowerCamelCase__        =				img_url.split('/'						)[-1]
      lowerCamelCase__        =				requests.get(lowerCamelCase     ,				stream=lowerCamelCase						)

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

def 			lowerCAmelCase_			(  lowerCamelCase:       str						)					->			dict:


      '''simple docstring'''




      lowerCamelCase__        =				'https://images-api.nasa.gov/search'
      return requests.get(lowerCamelCase     ,				params={'q': query}						).json()


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