




import os
from collections.abc import Iterator







def 				lowerCAmelCase_	(     snake_case_ = "."     ):
      for dir_path, dir_names, filenames in os.walk(snake_case_     ):
            _A							:     Any			=						[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(snake_case_     )[1] in (".py", ".ipynb"):
                        yield os.path.join(snake_case_,snake_case_     ).lstrip("""./"""     )







def 				lowerCAmelCase_	(     snake_case_     ):
      return f'''{i * "  "}*''' if i else "\n##"







def 				lowerCAmelCase_	(     snake_case_,snake_case_     ):
      _A							:     Any			=						old_path.split(os.sep     )
      for i, new_part in enumerate(new_path.split(os.sep     )     ):
            if (i + 1 > len(snake_case_     ) or old_parts[i] != new_part) and new_part:
                  print(f'''{md_prefix(snake_case_     )} {new_part.replace("_"," "     ).title()}'''     )
      return new_path







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


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







def 				lowerCAmelCase_	(     snake_case_     ):
      if n_term == "":
            return []
      _A							:     list			=						[]
      for temp in range(int(snake_case_     )     ):
            series.append(f'''1/{temp + 1}''' if series else """1"""     )
      return series


if __name__ == "__main__":
  _snake_case										=       input("Enter the last number (nth term) of the Harmonic Series")
  print("Formula of Harmonic Series => 1+1/2+1/3 ..... 1/n")
  print(harmonic_series(nth_term))

