


"""simple docstring"""



import os
from collections.abc import Iterator







def 						__lowerCAmelCase		(		lowercase						:						Optional[Any] = "."				)			->		Iterator[str]:


    """simple docstring"""





    for dir_path, dir_names, filenames in os.walk(UpperCamelCase__				):
        snake_case					:   List[str]         =					[d for d in dir_names if d != "scripts" and d[0] not in "._"]
        for filename in filenames:
            if filename == "__init__.py":
                continue
            if os.path.splitext(UpperCamelCase__				)[1] in (".py", ".ipynb"):
                yield os.path.join(UpperCamelCase__		,							UpperCamelCase__				).lstrip("./"				)







def 						__lowerCAmelCase		(		lowercase						:						Tuple				)			->		Union[str, Any]:


    """simple docstring"""





    return F'{i * "  "}*' if i else "\n##"







def 						__lowerCAmelCase		(		lowercase						:						Optional[int]		,							lowercase						:						List[str]				)			->		str:


    """simple docstring"""





    snake_case					:   Union[str, Any]         =					old_path.split(os.sep				)
    for i, new_part in enumerate(new_path.split(os.sep				)				):
        if (i + 1 > len(UpperCamelCase__				) or old_parts[i] != new_part) and new_part:
            print(F'{md_prefix(UpperCamelCase__				)} {new_part.replace("_"		,							" "				).title()}'				)
    return new_path







def 						__lowerCAmelCase		(		lowercase						:						List[str] = "."				)			->		None:


    """simple docstring"""





    snake_case					:   List[Any]         =					""
    for filepath in sorted(good_file_paths(UpperCamelCase__				)				):
        snake_case      ,snake_case					:   Any         =					os.path.split(UpperCamelCase__				)
        if filepath != old_path:
            snake_case					:   int         =					print_path(UpperCamelCase__		,							UpperCamelCase__				)
        snake_case					:   int         =					(filepath.count(os.sep				) + 1) if filepath else 0
        snake_case					:   List[Any]         =					F'{filepath}/{filename}'.replace(" "		,							"%20"				)
        snake_case					:   List[str]         =					os.path.splitext(filename.replace("_"		,							" "				).title()				)[0]
        print(F'{md_prefix(UpperCamelCase__				)} [{filename}]({url})'				)


if __name__ == "__main__":
  print_directory_md(""".""")









"""simple docstring"""



from __future__ import annotations

from cmath import sqrt







def 						__lowerCAmelCase		(		lowercase						:						int		,							lowercase						:						int		,							lowercase						:						int				)			->		tuple[complex, complex]:


    """simple docstring"""





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

    snake_case					:   Tuple         =					(-b + sqrt(lowercase				)) / (2 * a)
    snake_case					:   Optional[int]         =					(-b - sqrt(lowercase				)) / (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 						__lowerCAmelCase		(		)			->		List[Any]:


    """simple docstring"""





    snake_case      ,snake_case					:   Optional[Any]         =					quadratic_roots(a=5		,							b=6		,							c=1				)
    print(F'The solutions are: {solutiona} and {solutiona}'				)


if __name__ == "__main__":
  main()





