






from __future__ import annotations

import typing
from collections.abc import Iterable

import numpy as np

lowerCAmelCase_           = typing.Union[Iterable[float], Iterable[int], np.ndarray]  # noqa: UP007
lowerCAmelCase_           = typing.Union[np.floataa, int, float]  # noqa: UP007







def      snake_case		(							UpperCAmelCase	:       Vector,						UpperCAmelCase	:       Vector   ):
				return np.sqrt(np.sum((np.asarray(UpperCAmelCase   ) - np.asarray(UpperCAmelCase   )) ** 2   )   )







def      snake_case		(							UpperCAmelCase	:       Vector,						UpperCAmelCase	:       Vector   ):
				return sum((va - va) ** 2 for va, va in zip(UpperCAmelCase,						UpperCAmelCase   )   ) ** (1 / 2)


if __name__ == "__main__":







					def      snake_case		(							):
									from timeit import timeit

									print('Without Numpy'   )
									print(
									    timeit(
									        'euclidean_distance_no_np([1, 2, 3], [4, 5, 6])',						number=1_00_00,						globals=globals(),						)   )
									print('With Numpy'   )
									print(
									    timeit(
									        'euclidean_distance([1, 2, 3], [4, 5, 6])',						number=1_00_00,						globals=globals(),						)   )



					benchmark()













from __future__ import annotations

from collections.abc import Generator

import requests
from bsa import BeautifulSoup

lowerCAmelCase_           = 'https://www.indeed.co.in/jobs?q=mobile+app+development&l='







def      snake_case		(							UpperCAmelCase	:       str = "mumbai"   ):
				A	 =      BeautifulSoup(requests.get(url + location   ).content,						'html.parser'   )
				# This attribute finds out all the specifics listed in a job
				for job in soup.find_all('div',						attrs={'data-tn-component': 'organicJob'}   ):
								A	 =      job.find('a',						attrs={'data-tn-element': 'jobTitle'}   ).text.strip()
								A	 =      job.find('span',						{'class': 'company'}   ).text.strip()
								yield job_title, company_name


if __name__ == "__main__":
					for i, job in enumerate(fetch_jobs('Bangalore'), 1):
										print(f'''Job {i:>2} is {job[0]} at {job[1]}''')





