title: How to input integer values in a list(python 3.x)?
body: <p>I am trying to use list as an array and I want to enter integer values in the list so that I can perform some arithmetic on it. <br></p>
  
  <pre><code>m=int(input())
  </code></pre>
  
  <p>I always used this for getting some integer input from the user.</p>
  
  <pre><code>//creating an array
  
  myArray=[]
  inp=int(input("Please enter the length of array you wish to create"))
  for m in range(inp):
      myArray.append(int(input()))
  print(myArray)
  </code></pre>
  
  <p>But this isn't working. Why? </p>
  
  <blockquote>
    <p>Error :invalid literal for int() with base 10</p>
  </blockquote>