def is_palindrome(string): string = string.replace(" ", "").lower() print(string == string[::-1])
is_palindrome(input("Enter a string: "))
solo
def is_palindrome(string): string = string.replace(" ", "").lower() print(string == string[::-1])
is_palindrome(input("Enter a string: "))
Leave feedback in the comments!
Log in or sign up for Devpost to join the conversation.