title: How to deal with IndentationError?
body: <p>I get the following error:</p>
  
  <pre><code>File "imp.py", line 55
      key = get Key()
        ^
  IndentationError: expected an indented block
  </code></pre>
  
  <p>With the following Code:</p>
  
  <pre><code># Caesar Cipher
  
  MAX_KEY_SIZE = 26
  
  def getMode():
      while True:
          print('Do you wish to encrypt or decrypt or brute force a message?')
          mode = raw_input().lower()
          if mode in 'encrypt e decrypt d brute b'.split():
              return mode
          else:
              print('Enter either "encrypt" or "e" or "decrypt" or "d" or "brute" or "b".')
  
  def getMessage():
      print('Enter your message:')
      return raw_input()
  
  def getKey():
      key = 0
      while True:
          print('Enter the key number (1-%s)' % (MAX_KEY_SIZE))
          key = int(raw_input())
          if (key &gt;= 1 and key &lt;= MAX_KEY_SIZE):
              return key
  
  def getTranslatedMessage(mode, message, key):
      if mode[0] == 'd':
          key = -key
      translated = ''
  
      for symbol in message:
          if symbol.isalpha():
              num = ord(symbol)
              num += key
  
              if symbol.isupper():
                  if num &gt; ord('Z'):
                      num -= 26
                  elif num &lt; ord('A'):
                      num += 26
              elif symbol.islower():
                  if num &gt; ord('z'):
                      num -= 26
                  elif num &lt; ord('a'):
                      num += 26
  
              translated += chr(num)
          else:
              translated += symbol
      return translated
  
  mode = getMode()
  message = getMessage()
  if mode[0] != 'b':
  key = getKey()
  print('Your translated text is:')
  if mode[0] != 'b':
  print(getTranslatedMessage(mode, message, key))
  else: 
      for key in range(1, MAX_KEY_SIZE + 1): 
          print(key, getTranslatedMessage('decrypt', message, key))
  </code></pre>
  
  <p>How can I fix this?</p>