human
Find N fractions that sum upto a given fraction N / D | Function to split the fraction into the N parts.
Loop to find the N - 1 fraction.
Loop to print the Fractions.
Driver Code.
Function Call"
How can the above be solved in Python?

=====
Can you provide a code to find N fractions that sum upto a given fraction N / D and the other steps required?
assistant
#Here is code to find N fractions that sum upto a given fraction N / D and the other steps required.
 def splitFraction ( n , d ) :
	ar = [ ]
	for i in range ( 0 , n ) :
		ar . append ( 0 )
	first = d + n - 1
	ar [ 0 ] = first
	for i in range ( 1 , n ) :
		temp = first - 1
		ar [ i ] = first * temp
		first -= 1
	for i in range ( 0 , n ) :
		if ar [ i ] % n == 0 :
			print ( "1 / " , int ( ar [ i ] / n ) , " , " , end = " ▁ " )
		else :
			print ( n , " / " , ar [ i ] , " , " , end = " ▁ " )
N = 4
D = 2
splitFraction ( N , D )