title: Linear Search using python
body: <p>Hi I am new to python and I am trying to learn it by writing linear search in python here is the code and this is the code I have written so far. </p>
  
  <pre><code>a = [100]
  
  n = int(raw_input("Enter the no. of elements: "))
  
  print "Enter the elements: "
  for i in range(0,n):
      print i
  
  item = int(raw_input("Enter the item to be searched: "))
  
  for i in range(0,10):
  
      if a[i] == item:
          print "Item ", item, "found at location", i+1
          break;
  
  if i == n:
      print "Item", item, "not found"
  </code></pre>
  
  <p>I get a error saying list index out of range, where am I going wrong? </p>