Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
formation-git
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Louis Moriceau
formation-git
Commits
2d48879c
Commit
2d48879c
authored
1 year ago
by
Louis Moriceau
Browse files
Options
Downloads
Plain Diff
Merge branch 'revert-
f10e5cab
' into 'master'
Revert "Merge branch 'branche-a-rebase' into 'master'" See merge request
!3
parents
f10e5cab
803fe1d4
Branches
master
No related tags found
1 merge request
!3
Revert "Merge branch 'branche-a-rebase' into 'master'"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/main.py
+1
-11
1 addition, 11 deletions
code/main.py
with
1 addition
and
11 deletions
code/main.py
+
1
−
11
View file @
2d48879c
import
emoji
import
sys
wordToEmoji
=
{
'
super
'
:
'
:thumbs_up:
'
,
...
...
@@ -22,13 +21,4 @@ def convert(word):
if
__name__
==
"
__main__
"
:
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
)
print
(
"
super
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment