


'''simple docstring'''







def       lowercase					(_A ,    _A       ):







       """simple docstring"""







       _validate_point(__lowerCAmelCase       )
       _validate_point(__lowerCAmelCase       )
       if len(__lowerCAmelCase       ) != len(__lowerCAmelCase       ):
              raise ValueError('Both points must be in the same n-dimensional space'       )

       return float(sum(abs(a - b       ) for a, b in zip(__lowerCAmelCase ,    __lowerCAmelCase       )       )       )






def       lowercase					(_A       ):







       """simple docstring"""







       if point:
              if isinstance(__lowerCAmelCase ,    __lowerCAmelCase       ):
                     for item in point:
                            if not isinstance(__lowerCAmelCase ,    (int, float)       ):
                                   _lowerCAmelCase     :				Any       =							(
                                       'Expected a list of numbers as input, found '
                                       f'{type(__lowerCAmelCase       ).__name__}'
                                   )
                                   raise TypeError(__lowerCAmelCase       )
              else:
                     _lowerCAmelCase     :				List[str]       =							f'Expected a list of numbers as input, found {type(__lowerCAmelCase       ).__name__}'
                     raise TypeError(__lowerCAmelCase       )
       else:
              raise ValueError('Missing an input'       )






def       lowercase					(_A ,    _A       ):







       """simple docstring"""







       _validate_point(__lowerCAmelCase       )
       _validate_point(__lowerCAmelCase       )
       if len(__lowerCAmelCase       ) != len(__lowerCAmelCase       ):
              raise ValueError('Both points must be in the same n-dimensional space'       )

       return float(sum(abs(x - y       ) for x, y in zip(__lowerCAmelCase ,    __lowerCAmelCase       )       )       )


if __name__ == "__main__":
       import doctest

       doctest.testmod()







import webbrowser
from sys import argv
from urllib.parse import parse_qs, quote

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
      __magic_name__  :  List[Any]					=       """%20""".join(argv[1:]) if len(argv) > 1 else quote(str(input("""Search: """)))

      print("""Googling.....""")

      __magic_name__  :  List[Any]					=       F"https://www.google.com/search?q={query}&num=100"

      __magic_name__  :  Union[str, Any]					=       requests.get(
          url,
          headers={"""User-Agent""": str(UserAgent().random)},
      )

      try:
            __magic_name__  :  Optional[Any]					=       (
                BeautifulSoup(res.text, """html.parser""")
                .find("""div""", attrs={"""class""": """yuRUbf"""})
                .find("""a""")
                .get("""href""")
            )

      except AttributeError:
            __magic_name__  :  List[Any]					=       parse_qs(
                BeautifulSoup(res.text, """html.parser""")
                .find("""div""", attrs={"""class""": """kCrYT"""})
                .find("""a""")
                .get("""href""")
            )["""url"""][0]

      webbrowser.open(link)

