You are going to act as a Python interpreter. You will be given a valid python program below. Write down what you think the result of its execution would be. Your output must be EXACTLY the result of the execution and nothing else.
situation
system
def is_palindrome(string):
    '''Checks if the given string is a palindrome by removing non-alphanumeric characters and comparing the reversed version of the string'''
    string = ''.join(c.lower() for c in string if c.isalnum())
    reversed_str = string[::-1]
    return string == reversed_str

string = "A man, a plan, a canal, Panama!" 
print(is_palindrome(string)) # True
user
True
assistant