def is_palindrome(s: str) -> bool:
"""
Determine if the string s is a palindrome.
>>> is_palindrome("A man, A plan, A canal -- Panama!")
True
>>> is_palindrome("Hello")
False
>>> is_palindrome("Able was I ere I saw Elba")
True
>>> is_palindrome("racecar")
True
>>> is_palindrome("Mr. Owl ate my metal worm?")
True
"""
s = "".join(character for character in s.lower() if character.isalnum())
end = len(s) // 2
n = len(s)
for i in range(end):
if s[i] != s[n - i - 1]:
return False
return True
if __name__ == "__main__":
s = input("Please enter a string to see if it is a palindrome: ")
if is_palindrome(s):
print(f"'{s}' is a palindrome.")
else:
print(f"'{s}' is not a palindrome.")