Svitla Systems interview question

Write code on python, that selects palindromes from text (on python)