


'''simple docstring'''






import sys
import turtle


def    _snake_case  (	A					,       A			)		->       Dict:
							return (pa[0] + pa[0]) / 2, (pa[1] + pa[1]) / 2


def    _snake_case  (	A					,       A					,       A					,       A					,       )		->       Optional[Any]:
							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>'''
				)
		__UpperCAmelCase       							=				turtle.Turtle()
		my_pen.ht()
		my_pen.speed(5)
		my_pen.pencolor('''red''')

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



import os
from distutils.util import strtobool
def      UpperCAmelCase__		(UpperCamelCase_				,UpperCamelCase_							):



     """simple docstring"""






     for e in env_keys:
          snake_case											=							int(os.environ.get(UpperCamelCase_				,-1							)							)
          if val >= 0:
               return val
     return default
def      UpperCAmelCase__		(UpperCamelCase_				,UpperCamelCase_=False							):



     """simple docstring"""






     snake_case											=							os.environ.get(UpperCamelCase_				,str(UpperCamelCase_							)							)
     return strtobool(UpperCamelCase_							) == 1  # As its name indicates `strtobool` actually returns an int...

def      UpperCAmelCase__		(UpperCamelCase_				,UpperCamelCase_="no"							):



     """simple docstring"""






     snake_case											=							os.environ.get(UpperCamelCase_				,str(UpperCamelCase_							)							)
     return value




