title: Python "expected an indented block"
body: <p>I have this code:</p>
  <pre><code>option == 1
  while option != 0:
      print(&quot;MENU&quot;)
      option = input()
      print(&quot;please make a selection&quot;)
      print(&quot;1. count&quot;)
      print(&quot;0. quit&quot;)
      if option == 1:
          while option != 0:
              print(&quot;1. count up&quot;)
              print(&quot;2. count down&quot;)
              print(&quot;0. go back&quot;)
              if option == 1:
                  print &quot;please enter a number&quot;
                  for x in range(1, x, 1):
                      print(x)
                  elif option == 2:
                      print &quot;please enter a number&quot;
                      for x in range(x, 1, 1):
                  elif option == 0:
                      break
                  else:
                      print(&quot;invalid command&quot;)
      elif option == 0:
          break
  </code></pre>
  <p>I got an error saying <code>expected an indented block</code>. I tried to check the indentation carefully, make sure all my indents use 4 spaces, etc. but I cannot find the problem.</p>
  <p>What is wrong with the code, and how do I fix it?</p>