'''simple docstring'''





from urllib.error import HTTPError

from bsa import BeautifulSoup
from requests import exceptions, get

UpperCamelCase       :     Optional[Any]			=    '''https://www.wellrx.com/prescriptions/{0}/{1}/?freshSearch=true'''






def SCREAMING_SNAKE_CASE__  (				snake_case       :				str				,	snake_case       :				str  )   ->				int:







     """simple docstring"""






     try:
          # Has user provided both inputs?
          if not drug_name or not zip_code:
               return None

          a					:							Union[str, Any]							= BASE_URL.format(lowercase__				,	lowercase__  )
          a					:							Union[str, Any]							= get(lowercase__  )

          # Is the response ok?
          response.raise_for_status()

          # Scrape the data using bs4
          a					:							Optional[Any]							= BeautifulSoup(response.text				,	'html.parser'  )

          # This list will store the name and price.
          a					:							Any							= []

          # Fetch all the grids that contains the items.
          a					:							Optional[int]							= soup.find_all('div'				,	{'class': 'grid-x pharmCard'}  )
          if grid_list and len(lowercase__  ) > 0:
               for grid in grid_list:
                    # Get the pharmacy price.
                    a					:							Tuple							= grid.find('p'				,	{'class': 'list-title'}  ).text

                    # Get price of the drug.
                    a					:							Tuple							= grid.find('span'				,	{'p', 'price price-large'}  ).text

                    pharmacy_price_list.append(
                        {
                            'pharmacy_name': pharmacy_name,
                            'price': price,
                        }  )

          return pharmacy_price_list

     except (HTTPError, exceptions.RequestException, ValueError):
          return None


if __name__ == "__main__":
      # Enter a drug name and a zip code
      UpperCamelCase       :     Any			=    input("""Enter drug name: """).strip()
      UpperCamelCase       :     Optional[int]			=    input("""Enter zip code: """).strip()

      UpperCamelCase       :     list | None			=    fetch_pharmacy_and_price_list(
          drug_name, zip_code
      )

      if pharmacy_price_list:
            print(f'''\nSearch results for {drug_name} at location {zip_code}:''')
            for pharmacy_price in pharmacy_price_list:
                  UpperCamelCase       :     List[str]			=    pharmacy_price['''pharmacy_name''']
                  UpperCamelCase       :     Union[str, Any]			=    pharmacy_price['''price''']

                  print(f'''Pharmacy: {name} Price: {price}''')
      else:
            print(f'''No results found for {drug_name}''')





from __future__ import annotations

import math
from itertools import permutations

def 		snake_case_   (				lowercase__     :    int     ):






				'''simple docstring'''






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

				# All primes number are in format of 6k +/- 1
				for i in range(5       ,     int(math.sqrt(lowercase__     ) + 1     )       ,     6     ):
								if number % i == 0 or number % (i + 2) == 0:
												return False
				return True

def 		snake_case_   (				lowercase__     :    int = 7     ):






				'''simple docstring'''






				_lowerCAmelCase  						="""""".join(str(lowercase__     ) for i in range(1       ,     n + 1     )     )
				_lowerCAmelCase  						=[int("""""".join(lowercase__     )     ) for i in permutations(lowercase__       ,     lowercase__     )]
				_lowerCAmelCase  						=[num for num in perm_list if is_prime(lowercase__     )]
				return max(lowercase__     ) if pandigitals else 0


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

