Spiral Program In Python For Palindrome