Ad
Fundamentals
Strings
Data Types
Algorithms
Logic

A palindrome is a word spelt the same forwards and backwards.
If word is not a palindrome return False and if word is a palindrome return True.

Examples:

anna = True
hotdog = False
civic = True
kayak = True
codewars = False

def palindrome(word):
    if word[::-1] == word:
        return True
    else:
        return False