title: Why cannot multiple compound statements in Python be in one line?
body: <p>I want to compact my code as much as possible.
  Why isn't the following allowed in Python?</p>
  
  <pre><code>string = input()
  if string.isnumeric: pass
  else: if string == 'tesr': print('test') else: print('stop')
  </code></pre>