Skip to content
Snippets Groups Projects
Commit 4f903799 authored by Paul Bourgois's avatar Paul Bourgois
Browse files

Merge branch 'branche-a-rebase' into 'master'

Feature: translation of params

See merge request !2
parents fcee56a2 3b266aed
No related branches found
No related tags found
1 merge request!2Feature: translation of params
import emoji
import sys
wordToEmoji = {
'super': ':thumbs_up:',
......@@ -22,4 +23,13 @@ def convert(word):
if __name__ == "__main__":
print("super")
if len(sys.argv) <= 1:
print("Veuillez entrer une phrase en paramètre.")
else:
convertedText = ""
for sentence in sys.argv[1:]:
words = sentence.split(" ")
for word in words:
convertedText += convert(translate(word)) + " "
print(convertedText)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment