7.9 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...



7.9 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.



Use Python, please.




LAB<br>7.9.1: LAB: Palindrome<br>0/ 10<br>АCTIVITY<br>main.py<br>Load default template...<br>Type your code here...<br>2<br>

Extracted text: LAB 7.9.1: LAB: Palindrome 0/ 10 АCTIVITY main.py Load default template... Type your code here... 2

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here