Inheritance Example Program In Python For Palindrome