title: Python list reading integers
body: <p>I am trying to create a simple script that should count how many <code>integers</code> or <code>strings</code> there are in a list.
  At first the list is empty, then the user is asked to fill it with numbers or strings, this is the script:</p>
  
  <pre><code>lis = []            # list name
  
  num, lett = 0, 0    # init counters of numbers and letters
  while True:
     x = input("digit an int or string, 'stop' returns values: ")
     if(x=='stop'):
        False
        break
  
     i = lis.append(x)
     if isinstance(i, int): # check whether is integer
         num += 1
     else:
         lett += 1    
  
  print(lis)
  print("there are " + str(num) + " numbers")
  print("there are " + str(lett) + " strings")
  </code></pre>
  
  <p>The program works, but the problem comes in the end, because when I print the list, it sees only strings, even numbers are returned as '10', for example.</p>
  
  <p>I need the interpreter to automatically recognise integers.</p>