human
Program to compute log a to any base b ( logb a ) | Recursive function to compute log a to the base b.
Driver code"
How can the above be solved in Python?

=====
What is a code to program to compute log a to any base b ( logb a ) and the other steps required?
assistant
#Here is code to program to compute log a to any base b ( logb a ) and the other steps required.
 def log_a_to_base_b ( a , b ) :
	rslt = ( 1 + log_a_to_base_b ( a // b , b ) ) if ( a > ( b - 1 ) ) else 0 ;
	return rslt ;
if __name__ == " _ _ main _ _ " :
	a = 3 ;
	b = 2 ;
	print ( log_a_to_base_b ( a , b ) ) ;
	a = 256 ;
	b = 4 ;
	print ( log_a_to_base_b ( a , b ) ) ;