Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Swecha Project 1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
soumya
Swecha Project 1
Commits
80f7bcab
Commit
80f7bcab
authored
May 27, 2014
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
morse code to alphabets
parent
fda181df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/morsecode2.py
src/morsecode2.py
+6
-0
No files found.
src/morsecode2.py
0 → 100644
View file @
80f7bcab
morse_code
=
[
"."
,
"-"
,
".-"
,
"-."
,
"--"
,
".."
,
"..."
,
"---"
,
"..-"
,
"-.."
,
"-.-"
,
".-."
,
"--.."
,
"..--"
,
".-.-"
,
"-.-."
,
"----"
,
"...."
,
"-----"
,
"....."
,
"--..."
,
"...--"
,
"-...."
,
".----"
,
".-.-."
,
"-.-.-"
]
morsecode
=
[
"."
,
"..."
,
"...."
]
for
word
in
morsecode
:
for
index
,
word_defined
in
enumerate
(
morse_code
):
if
word
==
word_defined
:
print
chr
(
index
+
65
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment