human
Program for Decimal to Binary Conversion | function to convert decimal to binary.
array to store binary number.
counter for binary array.
storing remainder in binary array.
printing binary array in reverse order.
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 decToBinary ( n ) :
	binaryNum = [ 0 ] * n ;
	i = 0 ;
	while ( n > 0 ) :
		binaryNum [ i ] = n % 2 ;
		n = int ( n / 2 ) ;
		i += 1 ;
	for j in range ( i - 1 , - 1 , - 1 ) :
		print ( binaryNum [ j ] , end = " " ) ;
n = 17 ;
decToBinary ( n ) ;