You can iterate over a string like so:
word = 'elnatan'
for letter in word:
Each time through the loop, it will look at 1 character of the string. You can use concatenation (+) to construct a new string with dots or dashes added. You will want to start with initializing an empty string before the loop;
newString = ""