


'''simple docstring'''






import sys
import turtle







def 				UpperCamelCase_			(    A__					:   tuple[float, float]							,    A__					:   tuple[float, float]					):
  '''simple docstring'''





  return (pa[0] + pa[0]) / 2, (pa[1] + pa[1]) / 2







def 				UpperCamelCase_			(    A__					:   tuple[float, float]							,    A__					:   tuple[float, float]							,    A__					:   tuple[float, float]							,    A__					:   int							,    ):
  '''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(A__							,    get_mid(A__							,    A__					)							,    get_mid(A__							,    A__					)							,    depth - 1					)
  triangle(A__							,    get_mid(A__							,    A__					)							,    get_mid(A__							,    A__					)							,    depth - 1					)
  triangle(A__							,    get_mid(A__							,    A__					)							,    get_mid(A__							,    A__					)							,    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>"
    )
  __A					:  Union[str, Any]											=      turtle.Turtle()
  my_pen.ht()
  my_pen.speed(5)
  my_pen.pencolor("red")

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







'''simple docstring'''






def 				UpperCamelCase_			(    A__					:   str							,    A__					:   list[str]					):
  '''simple docstring'''





  lowerCAmelCase_			:      Dict			=   """"""
  for word_or_phrase in separated:
    if not isinstance(A__							,    A__					):
      raise Exception("""join() accepts only strings to be joined"""					)
    joined += word_or_phrase + separator
  return joined.strip(A__					)


if __name__ == "__main__":
  from doctest import testmod

  testmod()



