title: Creating an user input connected to my function
body: <p>I would like to create a user input for a function of mine. So this function of mine is a boolean function. It is used to test whether a word is a palindrome or not by giving an output True or False.</p>
  <p>I want to create a separate function (user input) where a person can type in the phrase that they want to find out if its a palindrome or not and it should print out the words &quot;The phrase you entered, XXXXXX is a palindrome&quot; when output is true and when output is false it should go &quot;The phrase you entered, XXXXXX is not a palindrome&quot;.</p>
  <p>My code as below:</p>
  <pre><code>def palindrome(phrase):
      len_phrase = len(phrase)//2
      print(&quot;len_phrase&quot;,len_phrase)
      for i in range(len_phrase):
          print(phrase[i],phrase[-i-1])
          if phrase[i] != phrase[-i-1]:
              return False
      return True     
  </code></pre>