human
Sum of all the numbers present at given level in Modified Pascal ’ s triangle | Function to calculate sum.
Driver Code"
Solution in Python:
 What is a code to sum of all the numbers present at given level in Modified Pascal ’ s triangle and the other steps required?
assistant
#Here is code to sum of all the numbers present at given level in Modified Pascal ’ s triangle and the other steps required.
 def ans ( n ) :
	if ( n == 1 ) :
		print ( "1" , end = " " ) ;
	else :
		print ( "0" , end = " " ) ;
if __name__ == " _ _ main _ _ " :
	n = 2 ;
	ans ( n ) ;