There are also numeral palindromes, including date / time stamps use short digits 11/11/11 11:11 and long digits 02/02/2020.Composing literature in palindromes is an example of constrained writing. Byzantine Greeks often inscribed the palindrome," wash [ thy ] sins, not only [ thy ] face" ΝΙΨΟΝ ΑΝΟΜΗΜΑΤΑ ΜΗ ΜΟΝΑΝ ΟΨΙΝ (" Nipson anomēmata mē monan opsin", engraving" ps" with the individual Greek letter Ψ, psi), on baptismal fonts; most notably in the basilica of Hagia Sophia, i.e. of the Holy Wisdom of deity, in Constantinople. This practice was continued in many churches in Western Europe, such as the font at St. Mary's Church, Nottingham and also the font of St. Stephen d'Egres, Paris; at St. Menin's Abbey, Orléans; at Dulwich College; and at the following churches in England: Worlingworth (Suffolk), Harlow (Essex), Knapton (Norfolk), St Martin, Ludgate (London), and Hadleigh (Suffolk).Palindromes date back at least to 79 ad, as a palindrome was found as a graffito at Herculaneum, a city bury by ash in that year.
def is_palindrome(s: str) -> bool: """ Determine whether the string is palindrome :param s: :return: Boolean >>> is_palindrome("a man a plan a canal panama".replace(" ", "")) 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 """ # Since Punctuation, capitalization, and spaces are usually ignored while checking Palindrome, # we first remove them from our string. s = "".join([character for character in s.lower() if character.isalnum()]) return s == s[::-1] if __name__ == "__main__": s = input("Enter string to determine whether its palindrome or not: ").strip() if is_palindrome(s): print("Given string is palindrome") else: print("Given string is not palindrome")