Commit 80f7bcab authored by root's avatar root

morse code to alphabets

parent fda181df
morse_code=[".","-",".-","-.","--","..","...","---","..-","-..","-.-",".-.","--..","..--",".-.-","-.-.","----","....","-----",".....","--...","...--","-....",".----",".-.-.","-.-.-"]
morsecode=[".","...","...."]
for word in morsecode:
for index,word_defined in enumerate(morse_code):
if word == word_defined:
print chr(index+65)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment