CYB/130 Week 5 Python LAB 6.7: Palindrome

$ 8

CYB/130 Week 5 Python LAB 6.7: 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.

918 in stock

SKU: CYB130WK5LAB6P7 Categories: ,

Description

CYB/130 Week 5 Python LAB 6.7: 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.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.