human
Probability that a N digit number is palindrome | Find the probability that a n digit number is palindrome.
Denominator.
Assign 10 ^ ( floor ( n / 2 ) ) to denominator.
Display the answer.
Driver code"
How can the above be solved in Python?
 ... Give me a code to probability that a N digit number is palindrome and the other steps required?
assistant
#Here is code to probability that a N digit number is palindrome and the other steps required.
 def solve ( n ) :
	n_2 = n // 2 ;
	den = "1" ;
	while ( n_2 ) :
		den += '0' ;
		n_2 -= 1
	print ( str ( 1 ) + " / " + str ( den ) )
if __name__ == " _ _ main _ _ " :
	N = 5 ;
	solve ( N ) ;