





'''simple docstring'''







import os
from collections.abc import Iterator






def 					_lowerCamelCase							(					lowercase		: List[Any] = "."		)      ->      Iterator[str]:
				for dir_path, dir_names, filenames in os.walk(_lowerCAmelCase		):
								_a				      =					[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(_lowerCAmelCase		)[1] in (".py", ".ipynb"):
																yield os.path.join(_lowerCAmelCase       ,				_lowerCAmelCase		).lstrip("./"		)






def 					_lowerCamelCase							(					lowercase		: str		)      ->      Optional[Any]:
				return F'{i * "  "}*' if i else "\n##"






def 					_lowerCamelCase							(					lowercase		: Optional[int]       ,				lowercase		: Any		)      ->      str:
				_a				      =					old_path.split(os.sep		)
				for i, new_part in enumerate(new_path.split(os.sep		)		):
								if (i + 1 > len(_lowerCAmelCase		) or old_parts[i] != new_part) and new_part:
												print(F'{md_prefix(_lowerCAmelCase		)} {new_part.replace("_"       ,				" "		).title()}'		)
				return new_path






def 					_lowerCamelCase							(					lowercase		: Optional[Any] = "."		)      ->      None:
				_a				      =					""
				for filepath in sorted(good_file_paths(_lowerCAmelCase		)		):
								_a				      =					os.path.split(_lowerCAmelCase		)
								if filepath != old_path:
												_a				      =					print_path(_lowerCAmelCase       ,				_lowerCAmelCase		)
								_a				      =					(filepath.count(os.sep		) + 1) if filepath else 0
								_a				      =					F'{filepath}/{filename}'.replace(" "       ,				"%20"		)
								_a				      =					os.path.splitext(filename.replace("_"       ,				" "		).title()		)[0]
								print(F'{md_prefix(_lowerCAmelCase		)} [{filename}]({url})'		)


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







def 						A_							(	_lowerCAmelCase	)		->					bool:
 return str(_lowerCAmelCase	) == str(_lowerCAmelCase	)[::-1]



def 						A_							(	_lowerCAmelCase	)		->					int:
 return int(_lowerCAmelCase	) + int(str(_lowerCAmelCase	)[::-1]	)



def 						A_							(	_lowerCAmelCase = 1_0000	)		->					int:
 UpperCamelCase      :   List[Any]			      =  []
 for num in range(1				,  _lowerCAmelCase	):
  UpperCamelCase      :   Union[str, Any]			      =  0
  UpperCamelCase      :   List[str]			      =  num
  while iterations < 50:
   UpperCamelCase      :   int			      =  sum_reverse(_lowerCAmelCase	)
   iterations += 1
   if is_palindrome(_lowerCAmelCase	):
    break
  else:
   lychrel_nums.append(_lowerCAmelCase	)
 return len(_lowerCAmelCase	)


if __name__ == "__main__":
    print(f"""{solution() = }""")
