



"""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(lowerCAmelCase__     ,				get_mid(lowerCAmelCase__     ,				lowerCAmelCase__       )     ,				get_mid(lowerCAmelCase__     ,				lowerCAmelCase__       )     ,				depth - 1       )
  triangle(lowerCAmelCase__     ,				get_mid(lowerCAmelCase__     ,				lowerCAmelCase__       )     ,				get_mid(lowerCAmelCase__     ,				lowerCAmelCase__       )     ,				depth - 1       )
  triangle(lowerCAmelCase__     ,				get_mid(lowerCAmelCase__     ,				lowerCAmelCase__       )     ,				get_mid(lowerCAmelCase__     ,				lowerCAmelCase__       )     ,				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  							=					[(-1_75, -1_25), (0, 1_75), (1_75, -1_25)]  # vertices of triangle
     triangle(vertices[0], vertices[1], vertices[2], int(sys.argv[1]))







"""simple docstring"""





from __future__ import annotations

from cmath import sqrt




def 	UpperCAmelCase     (		A	:						int     ,				A	:						int     ,				A	:						int       ):

		'''simple docstring'''


		if a == 0:
				raise ValueError('Coefficient \'a\' must not be zero.'       )
		_UpperCAmelCase							 =		b * b - 4 * a * c

		_UpperCAmelCase							 =		(-b + sqrt(A       )) / (2 * a)
		_UpperCAmelCase							 =		(-b - sqrt(A       )) / (2 * a)

		return (
		    root_a.real if not root_a.imag else root_a,
		    root_a.real if not root_a.imag else root_a,
		)




def 	UpperCAmelCase     (		):

		'''simple docstring'''


		_UpperCAmelCase ,					_UpperCAmelCase							 =		quadratic_roots(a=5     ,				b=6     ,				c=1       )
		print(f'The solutions are: {solutiona} and {solutiona}'       )


if __name__ == "__main__":
					main()


