<filename>palindromes/py/palindromes.py

def palindrome(string):
    reversed = string[::-1]
    if reversed == string:
        return True
    else:
        return False

print(palindrome('aba'))


<filename>palindromes/py/palindromes.py

def palindrome(string):
    reversed = string[::-1]
    if reversed == string:
        return True
    else:
        return False

print(palindrome('aba'))

