Skip to content

Instantly share code, notes, and snippets.

@gmolveau
Last active October 25, 2022 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gmolveau/5e80474ac69f2dfeba2aa195eb773ffb to your computer and use it in GitHub Desktop.
Save gmolveau/5e80474ac69f2dfeba2aa195eb773ffb to your computer and use it in GitHub Desktop.
exercice_numerotation_text.py
text_input = """a
b
c
d
e
f
"""
text_output = """1. a
1.1. b
1.1.1. c
1.1.2. d
1.2. e
2. f
"""
def main() -> str:
# code here
pass
if __name__ == "__main__":
o = main()
assert o == text_output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment