human
Program for Decimal to Binary Conversion | Function to return the binary equivalent of decimal value N.
To store the binary number.
Count used to store exponent value.
Driver code"
How can the above be solved in Python?

Write me a code to program for Decimal to Binary Conversion and the other steps required?
assistant
#Here is code to program for Decimal to Binary Conversion and the other steps required.
 def decimalToBinary ( N ) :
	B_Number = 0
	cnt = 0
	while ( N != 0 ) :
		rem = N % 2
		c = pow ( 10 , cnt )
		B_Number += rem * c
		N //= 2
		cnt += 1
	return B_Number
N = 17
print ( decimalToBinary ( N ) )