'''simple docstring'''





import sys
import turtle
def 						__A							(     UpperCAmelCase     ,UpperCAmelCase					)     ->			tuple[float, float]:




						'''simple docstring'''
						return (pa[0] + pa[0]) / 2, (pa[1] + pa[1]) / 2
def 						__A							(     UpperCAmelCase     ,UpperCAmelCase     ,UpperCAmelCase     ,UpperCAmelCase     ,)     ->			None:




						'''simple docstring'''
						my_pen.up()
						my_pen.goto(vertexa[0]     ,vertexa[1]					)
						my_pen.down()
						my_pen.goto(vertexa[0]     ,vertexa[1]					)
						my_pen.goto(vertexa[0]     ,vertexa[1]					)
						my_pen.goto(vertexa[0]     ,vertexa[1]					)

						if depth == 0:
												return

						triangle(UpperCAmelCase     ,get_mid(UpperCAmelCase     ,UpperCAmelCase					)     ,get_mid(UpperCAmelCase     ,UpperCAmelCase					)     ,depth - 1					)
						triangle(UpperCAmelCase     ,get_mid(UpperCAmelCase     ,UpperCAmelCase					)     ,get_mid(UpperCAmelCase     ,UpperCAmelCase					)     ,depth - 1					)
						triangle(UpperCAmelCase     ,get_mid(UpperCAmelCase     ,UpperCAmelCase					)     ,get_mid(UpperCAmelCase     ,UpperCAmelCase					)     ,depth - 1					)


if __name__ == "__main__":
			if len(sys.argv) != 2:
						raise ValueError(
						    """Correct format for using this script: """
						    """python fractals.py <int:depth_for_fractal>"""
						)
			lowerCAmelCase_	:		int			=     turtle.Turtle()
			my_pen.ht()
			my_pen.speed(5)
			my_pen.pencolor("""red""")

			lowerCAmelCase_	:		str			=     [(-175, -125), (0, 175), (175, -125)]  # vertices of triangle
			triangle(vertices[0], vertices[1], vertices[2], int(sys.argv[1]))



'''simple docstring'''





import requests
from bsa import BeautifulSoup
def 						__A							(     UpperCAmelCase     ,UpperCAmelCase					)     ->			str:




						'''simple docstring'''
						_UpperCamelCase			:			Dict   			=						BeautifulSoup(requests.get(UpperCAmelCase     ,params=UpperCAmelCase					).content     ,"html.parser"					)
						_UpperCamelCase			:			Union[str, Any]   			=						soup.find("div"     ,attrs={"class": "gs_ri"}					)
						_UpperCamelCase			:			Optional[Any]   			=						div.find("div"     ,attrs={"class": "gs_fl"}					).find_all("a"					)
						return anchors[2].get_text()


if __name__ == "__main__":
			lowerCAmelCase_	:		Optional[int]			=     {
			    """title""": (
			        """Precisely geometry controlled microsupercapacitors for ultrahigh areal """
			        """capacitance, volumetric capacitance, and energy density"""
			    ),
			    """journal""": """Chem. Mater.""",
			    """volume""": 30,
			    """pages""": """3979-3990""",
			    """year""": 2018,
			    """hl""": """en""",
			}
			print(get_citation("""https://scholar.google.com/scholar_lookup""", params=params))


