Palindrome !?

palindrome , detection , string , algorithms

Rotavator #

Rotavator

Palindrome? What is it !? #

data = input("Enter something: ")

def is_palindrome(data):
    reverse = data[::-1]
    if data == reverse:
        print("Yes")
        return True
    print("Nope")
    return False

is_palindrome(data)

Hope you learned something today atleast i did for sure. #

Thanks for reading :) #