title: Whitespace characters as both a key and a value in a dictionary
body: <p>I want to decode whole sentences from Morse code to normal alphabet - my script does just that, but it joins all words - it doesn't preserve spaces. In morseCode (the input) three spaces represent the separation between words, while one space represents the separation between letters. </p>
  
  <p>I tried adding three spaces as a key to the dictionary with corresponding value of one space, but it doesn't seem to work.</p>
  
  <pre><code>def decodeMorse(morseCode):
      MORSE_CODE['   '] = ' '
      return ''.join(MORSE_CODE.get(i) for i in morseCode.split())
  </code></pre>
  
  <p>I also tried to separate input using regular expressions, but I failed. Is there a way to make it work using dictionaries? Is it even possible to use whitespaces as keys and inputs in dictionaries?</p>