End of Summer - hours only!Up to 80% off on all courses and bundles.-Close
Sherlock Holmes
6. Find palindromes

Instruction

OK! Let's have a little investigation!

Exercise

Write a function called find_palindromes(). A palindrome is a word that reads the same backward and forward, for example: 'level', 'madam', or 'reviver'.

Your function should accept a set of words as an argument and return a list of words from the set that are palindromes.

A little tip for you – a shortcut to get the reversed word is:

word[::-1]

You can get to know more about this notation in our Python Strings course.