


"""simple docstring"""







from __future__ import annotations


def 					lowercase      (    A_  ,       A_	)->				list[str]:
  '''simple docstring'''







  if partitions <= 0:
    raise ValueError("partitions must be a positive number!"	)
  if partitions > number_of_bytes:
    raise ValueError("partitions can not > number_of_bytes!"	)
  a						:		Optional[Any]											=      number_of_bytes // partitions
  a						:		int											=      []
  for i in range(snake_case_	):
    a						:		Optional[Any]											=      i * bytes_per_partition + 1
    a						:		Optional[Any]											=      (
        number_of_bytes if i == partitions - 1 else (i + 1) * bytes_per_partition
    )
    allocation_list.append(F'''{start_bytes}-{end_bytes}'''	)
  return allocation_list


if __name__ == "__main__":
 import doctest

 doctest.testmod()










"""simple docstring"""







import sys
import turtle


def 					lowercase      (    A_  ,       A_	)->				tuple[float, float]:
  '''simple docstring'''







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


def 					lowercase      (    A_  ,       A_  ,       A_  ,       A_  ,       )->				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(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>"""
  )
 __lowercase    =				turtle.Turtle()
 my_pen.ht()
 my_pen.speed(5)
 my_pen.pencolor("""red""")

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






