How do I find the longest palindrome in a string? The challenge:


  Make a function that finds the longest palindrome inside a string.


Note: This is a code-trolling question. Please do not take the question and/or answers seriously. More information here.
Python

def longest_palindrome(s):
    return 'racecar'


Example usage:

&gt;&gt;&gt; print longest_palindrome('I like racecars!')
racecar


Note: this may only work for certain strings.