human
Binary representation of a given number | Function to convert decimal to binary number.
Driver code"
How can the above be solved in Python?
assistant
#Here is code to binary representation of a given number and the other steps required.
 def bin ( n ) :
	if ( n > 1 ) :
		bin ( n >> 1 )
	print ( n & 1 , end = " " )
bin ( 131 )
print ( )
bin ( 3 )