Skip to content
Snippets Groups Projects
Commit 626de33e authored by Fabien Zucchet's avatar Fabien Zucchet
Browse files

create branche-a-rebase

parent f26cb54b
Branches
No related tags found
1 merge request!2Branche a rebase
...@@ -22,4 +22,12 @@ def convert(word): ...@@ -22,4 +22,12 @@ def convert(word):
if __name__ == "__main__": if __name__ == "__main__":
print(convert(translate('sourire'))) if len(sys.argv) == 0:
\ No newline at end of file print("Veuillez entrer une phrase en paramètre.")
else:
convertedText = ""
for sentence in sys.argv:
words = sentence.split(" ")
for word in words:
convertedText += convert(translate(word))
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment