human
Number of strings of length N with no palindromic sub string | Return the count of strings with no palindromic substring ..
Driven Program"
Solution in Python:

=====
Write me a code to number of strings of length N with no palindromic sub string and the other steps required?
assistant
#Here is code to number of strings of length N with no palindromic sub string and the other steps required.
 def numofstring ( n , m ) :
	if n == 1 :
		return m
	if n == 2 :
		return m * ( m - 1 )
	return m * ( m - 1 ) * pow ( m - 2 , n - 2 )
n = 2
m = 3
print ( numofstring ( n , m ) )