(Solved) : 912 Lab Palindrome Palindrome Word Phrase Read Forward Backward Examples Bob Sees Never Od Q35108017 . . .

In python, please. Code must work with all inputs.

9.12 LAB: Palindrome A palindrome is a word or a phrase that is the same when read both forward and backward. Examples are:

9.12 LAB: Palindrome A palindrome is a word or a phrase that is the same when read both forward and backward. Examples are: “bob,” sees,” or “never odd or even” (ignoring spaces). Write a program whose input is a word or phrase, and that outputs whether the input is a palindrome Ex: If the input is bob, the output is bob is a palindrome Ex If the input is bobby, the output is bobby is not a palindrome Hint: Start by removing spaces. Then check if a string is equivalent to it’s reverse LAB ACTIVITY 9.12.1: LAB: Palindrome 6/10 main.py Load default template… 1 user_input inputO) 3 high -len(user_input)-1 4 flagFalse 5 while lowchigh): 6 if(user_input[low]!-user_input[high]): flag True break Low+-1 high–1 10 11 if(flag): 12 print(user input,”is not a palindrome 13 else: 14 print(user_input, “is a palindrome” Show transcribed image text

Expert Answer


. . .