Probability Program In Python For Palindrome