title: Python-Take multiple inputs using for loop and print multiple outputs through if condition
body: <p>This is my code which prints if a number can be divided into two even numbers.</p>
  
  <pre><code>`n=int(input("Enter no. of variables:"))
  for i in range(n):
      a = list(map(int, input().rstrip().split()))
  for x in a:
      if(x%2==0):
          print("Yes")
      elif(x==2 or x==0):
          print("No")
      else:
          print("No")`
  </code></pre>
  
  <p>I am getting the output as</p>
  
  <p><code>Enter no. of variables:2
  4
  6
  Yes</code></p>
  
  <p>Only the last number entered is giving the result,
  I need the output as</p>
  
  <p><code>Enter no. of variables:2
  4
  6
  Yes
  Yes</code></p>
  
  <p>Please help</p>