Generate a python program to check if the string is a palindrome or not.
string = "madam"
def is_palindrom(string):
    reverse_string = string[::-1]
    if string == reverse_string:
        return True
    else:
        return False