while True:
    inp = input('Message: ')
for letter in inp:
    a = morseDict[letter]
morseStr = a
for c in morseStr:
    print(c)
if c == '-':
    winsound.Beep(800, 500)
elif c == '.':
    winsound.Beep(800, 100)
else:
    time.sleep(0.4)
time.sleep(0.2)
time.sleep(0.4)
Allowing multiple characters in morse code converter