title: Checking a list of strings as palindrome in python 3
body: <p>I am checking a list of strings if every string in the list is palindrome or not.
  I need a for loop to test the function for all strings in the list.</p>
  
  <p>l=["Anna",
  "Civic",
  "Computer"
  ]</p>
  
  <p>First, i write a code just like this below:</p>
  
  <pre><code>def is_it_palindrome(list):
  for x in list:
      if x.upper() == x[::-1].upper():
          return True
      else:
          return False
  </code></pre>
  
  <p>when I run this code, it only returns one True. not True True False
  Then I change my code:</p>
  
  <pre><code>def is_it_palindrome(list):
  for x in list:
      if x.upper() == x[::-1].upper():
          print("True")
      else:
          print("False")
  </code></pre>
  
  <p>It works. However, Could anyone tell me why the first one do not work and the second one is true or not. 
  Thank you.</p>