Last active
May 8, 2024 10:32
-
-
Save gmolveau/5e80474ac69f2dfeba2aa195eb773ffb to your computer and use it in GitHub Desktop.
exercice_numerotation_text.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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