






'''simple docstring'''




import unittest
from timeit import timeit

def       __lowercase		(    __lowercase     ,						__lowercase ) ->		Dict:

      '''simple docstring'''


      _A      =			first_num if first_num >= second_num else second_num
      _A      =			max_num
      while (common_mult % first_num > 0) or (common_mult % second_num > 0):
            common_mult += max_num
      return common_mult

def       __lowercase		(    __lowercase     ,						__lowercase ) ->		str:

      '''simple docstring'''


      return b if a == 0 else greatest_common_divisor(b % a     ,						lowercase_ )

def       __lowercase		(    __lowercase     ,						__lowercase ) ->		str:

      '''simple docstring'''


      return first_num // greatest_common_divisor(lowercase_     ,						lowercase_ ) * second_num

def       __lowercase		(    ) ->		Tuple:

      '''simple docstring'''


      _A      =			(
          "from __main__ import least_common_multiple_slow, least_common_multiple_fast"
      )
      print(
          "least_common_multiple_slow():"     ,						timeit("least_common_multiple_slow(1000, 999)"     ,						setup=lowercase_ )     ,						)
      print(
          "least_common_multiple_fast():"     ,						timeit("least_common_multiple_fast(1000, 999)"     ,						setup=lowercase_ )     ,						)

class      _UpperCAmelCase    (  unittest.TestCase		):




   """simple docstring"""

   snake_case					       =		(
       (10, 20),
       (13, 15),
       (4, 31),
       (10, 42),
       (43, 34),
       (5, 12),
       (12, 25),
       (10, 25),
       (6, 9),
   )
   snake_case					       =		(20, 1_95, 1_24, 2_10, 14_62, 60, 3_00, 50, 18)

   def 		lowerCAmelCase				(    self				:			int	):





         '''simple docstring'''





         for i, (first_num, second_num) in enumerate(self.test_inputs	):
               _A      =			least_common_multiple_slow(__UpperCamelCase   ,   __UpperCamelCase	)
               _A      =			least_common_multiple_fast(__UpperCamelCase   ,   __UpperCamelCase	)
               with self.subTest(i=__UpperCamelCase	):
                     self.assertEqual(__UpperCamelCase   ,   self.expected_results[i]	)
                     self.assertEqual(__UpperCamelCase   ,   self.expected_results[i]	)


if __name__ == "__main__":
    benchmark()
    unittest.main()













'''simple docstring'''




from urllib.error import HTTPError

from bsa import BeautifulSoup
from requests import exceptions, get

lowerCamelCase_							      =      '''https://www.wellrx.com/prescriptions/{0}/{1}/?freshSearch=true'''

def       __lowercase		(    __lowercase     ,						__lowercase ) ->		list | None:

      '''simple docstring'''


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

            _A      =			BASE_URL.format(__lowercase     ,						__lowercase )
            _A      =			get(__lowercase )

            # Is the response ok?
            response.raise_for_status()

            # Scrape the data using bs4
            _A      =			BeautifulSoup(response.text     ,						"html.parser" )

            # This list will store the name and price.
            _A      =			[]

            # Fetch all the grids that contains the items.
            _A      =			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      =			grid.find("p"     ,						{"class": "list-title"} ).text

                        # Get price of the drug.
                        _A      =			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
    lowerCamelCase_							      =      input('''Enter drug name: ''').strip()
    lowerCamelCase_							      =      input('''Enter zip code: ''').strip()

    lowerCamelCase_							      =      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:
            lowerCamelCase_							      =      pharmacy_price['''pharmacy_name''']
            lowerCamelCase_							      =      pharmacy_price['''price''']

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





