






from __future__ import annotations

from decimal import Decimal
from math import *  # noqa: F403

from sympy import diff







def      snake_case		(							UpperCAmelCase	:       str,						UpperCAmelCase	:       float | Decimal,						UpperCAmelCase	:       float = 10**-10   ):
    A	 =      a
    while True:
        A	 =      Decimal(UpperCamelCase__   ) - (
            Decimal(eval(UpperCamelCase__   )   ) / Decimal(eval(str(diff(UpperCamelCase__   )   )   )   )  # noqa: S307
        )
        # This number dictates the accuracy of the answer
        if abs(eval(UpperCamelCase__   )   ) < precision:  # noqa: S307
            return float(UpperCamelCase__   )


# Let's Execute
if __name__ == "__main__":
     # Find root of trigonometric function
     # Find value of pi
     print(f'''The root of sin(x) = 0 is {newton_raphson("sin(x)", 2)}''')
     # Find root of polynomial
     print(f'''The root of x**2 - 5*x + 2 = 0 is {newton_raphson("x**2 - 5*x + 2", 0.4)}''')
     # Find Square Root of 5
     print(f'''The root of log(x) - 1 = 0 is {newton_raphson("log(x) - 1", 2)}''')
     # Exponential Roots
     print(f'''The root of exp(x) - 1 = 0 is {newton_raphson("exp(x) - 1", 0)}''')













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]}''')





