A palindrome is a word that reads the same both forward and backwards. Examples are ‘civic’ ‘racecar’ ‘eye’ and ‘madam’. Create a function called palindrome that takes a single word as a parameter and returns True if the word is a palindrome and False otherwise.
Comments
Leave a comment