

'''simple docstring'''
import sys
import turtle


def        _lowerCAmelCase					(						_UpperCamelCase						:     tuple[float, float]							, _UpperCamelCase						:     tuple[float, float]				)      ->			tuple[float, float]:
     """simple docstring"""




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


def        _lowerCAmelCase					(						_UpperCamelCase						:     tuple[float, float]							, _UpperCamelCase						:     tuple[float, float]							, _UpperCamelCase						:     tuple[float, float]							, _UpperCamelCase						:     int							, )      ->			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 :      Dict					 =     turtle.Turtle()
     my_pen.ht()
     my_pen.speed(5)
     my_pen.pencolor("red")

     lowerCamelCase :      Dict					 =     [(-1_7_5, -1_2_5), (0, 1_7_5), (1_7_5, -1_2_5)]  # vertices of triangle
     triangle(vertices[0], vertices[1], vertices[2], int(sys.argv[1]))







'''simple docstring'''


def 							UpperCAmelCase_  (						__lowerCamelCase					:					int	,__lowerCamelCase					:					int ):
   return int((input_a, input_a).count(0 ) == 0 )
def 							UpperCAmelCase_  (						):
   assert and_gate(0	,0 ) == 0
   assert and_gate(0	,1 ) == 0
   assert and_gate(1	,0 ) == 0
   assert and_gate(1	,1 ) == 1


if __name__ == "__main__":
 test_and_gate()
 print(and_gate(1, 0))
 print(and_gate(0, 0))
 print(and_gate(0, 1))
 print(and_gate(1, 1))


