human
Decimal to Binary using recursion and without using power operator | Recursive function to convert n to its binary equivalent.
Base case.
Recursive call.
Driver code"
How can the above be solved in Python?
assistant
#Here is code to decimal to Binary using recursion and without using power operator and the other steps required.
 def decimalToBinary ( n ) :
	if ( n == 0 ) :
		print ( "0" , end = " " ) ;
		return ;
	decimalToBinary ( n // 2 ) ;
	print ( n % 2 , end = " " ) ;
if __name__ == " _ _ main _ _ " :
	n = 13 ;
	decimalToBinary ( n ) ;