Skip to content
Snippets Groups Projects
Commit 178becbc authored by Kevin Fairise's avatar Kevin Fairise
Browse files

Merge branch 'branche-a-rebase' of gitlab.viarezo.fr:wiikip/test-formation-git...

Merge branch 'branche-a-rebase' of gitlab.viarezo.fr:wiikip/test-formation-git into branche-a-rebase
parents 8d4d9d9d 626de33e
No related branches found
No related tags found
1 merge request!2Branche a rebase
......@@ -22,4 +22,12 @@ def convert(word):
if __name__ == "__main__":
print(convert(translate('sourire')))
\ No newline at end of file
if len(sys.argv) == 0:
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