title: How do i search an element in a 1D List in Py3.5
body: <p>I am trying to write a basic program that could tell the user if the element entered by them is present in the list entered by them or not. </p>
  
  <p>My code:</p>
  
  <pre><code>a=(int(x) for x in input().split())
  b=input('Enter the element you want to see if is present or not')
  if b in a:
     print('Yes it is present')
  else:
     print('Try again')
  </code></pre>
  
  <p>Output: Try Again (In all the cases)</p>
  
  <p>Please help me correct this code and also tell me why <code>if b in a</code>  doesnt work but <code>b in a</code> works in the Python shell. </p>
  
  <p>Thanks:)</p>