





from __future__ import annotations

import math


def 							SCREAMING_SNAKE_CASE__						(    __a   , __a   ):
	snake_case_		:			List[str]											=	u
	for i in range(1   , __UpperCAmelCase   ):
		snake_case_		:			List[Any]											=	temp * (u - i)
	return temp


def 							SCREAMING_SNAKE_CASE__						(    ):
	snake_case_		:			int											=	int(input('enter the numbers of values: '   )   )
	snake_case_		:			List[str]											=	[]
	for _ in range(__UpperCAmelCase   ):
		y.append([]   )
	for i in range(__UpperCAmelCase   ):
		for j in range(__UpperCAmelCase   ):
			y[i].append(__UpperCAmelCase   )
			snake_case_		:			Dict											=	0

	print('enter the values of parameters in a list: '   )
	snake_case_		:			str											=	list(map(__UpperCAmelCase   , input().split()   )   )

	print('enter the values of corresponding parameters: '   )
	for i in range(__UpperCAmelCase   ):
		snake_case_		:			Optional[Any]											=	float(input()   )

	snake_case_		:			Optional[int]											=	int(input('enter the value to interpolate: '   )   )
	snake_case_		:			Optional[int]											=	(value - x[0]) / (x[1] - x[0])

	# for calculating forward difference table

	for i in range(1   , __UpperCAmelCase   ):
		for j in range(n - i   ):
			snake_case_		:			Optional[Any]											=	y[j + 1][i - 1] - y[j][i - 1]

	snake_case_		:			Optional[int]											=	y[0][0]
	for i in range(1   , __UpperCAmelCase   ):
		summ += (ucal(__UpperCAmelCase   , __UpperCAmelCase   ) * y[0][i]) / math.factorial(__UpperCAmelCase   )

	print(f"""the value at {value} is {summ}"""   )


if __name__ == "__main__":
					main()








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__":
						_SCREAMING_SNAKE_CASE      	=		"""%20""".join(argv[1:]) if len(argv) > 1 else quote(str(input("""Search: """)))

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

						_SCREAMING_SNAKE_CASE      	=		F'''https://www.google.com/search?q={query}&num=100'''

						_SCREAMING_SNAKE_CASE      	=		requests.get(
						    url,
						    headers={"""User-Agent""": str(UserAgent().random)},
						)

						try:
												_SCREAMING_SNAKE_CASE      	=		(
												    BeautifulSoup(res.text, """html.parser""")
												    .find("""div""", attrs={"""class""": """yuRUbf"""})
												    .find("""a""")
												    .get("""href""")
												)

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

						webbrowser.open(link)

