title: Python. Is digit should check for multiple number
body: <p>I write small program on python just to learn how <code>split</code> and <code>isdigit</code> functions works</p>
  
  <p>Program is:</p>
  
  <pre><code>s = input('type something:')
  if s.isdigit():
      a = s.split()
      a = list(map(int, a))
      print('What you typed was number and it was converted to integer')
      print('Result is:', a)
  else:
      a = s.split()
      print('What you typed was words it was not converted to integer')
      print('Result is:', a)
  </code></pre>
  
  <p>Question is what... When i type one single number  program works fine. <code>isdigit</code> checks for number. (Is really list contains of number).</p>
  
  <p>When i type 4 (only one number - that's fine)</p>
  
  <p>But when i type 3 6 4 2 6 3 multiple numbers <code>isdigit</code> can not check it </p>
  
  <p>Why?</p>