Write a function to check given string is palindrome or not ( case insensitive )


Topic: Write a function to check given string is palindrome or not ( case insensitive )

Solution

def palindrome_str_check(value: str):
    """
    function to print whether string is palindrome or not
    """
    if isinstance(value, str) :
        print( value.lower() == value[::-1].lower() )
    else:
        raise ValueError('Invalid Input')



List all Python Programs