human
Count ways to obtain given sum by repeated throws of a dice | Function to find the number of ways to get the sum N with throw of dice.
Base case.
Stores the count of total number of ways to get sum N.
Recur for all 6 states.
Return answer.
Driver Code.
Function call"
Solution in Python:

Give me a code to count ways to obtain given sum by repeated throws of a dice and the other steps required?
assistant
#Here is code to count ways to obtain given sum by repeated throws of a dice and the other steps required.
 def findWays ( N ) :
	if ( N == 0 ) :
		return 1
	cnt = 0
	for i in range ( 1 , 7 ) :
		if ( N - i >= 0 ) :
			cnt = cnt + findWays ( N - i )
	return cnt
if __name__ == ' _ _ main _ _ ' :
	N = 4
	print ( findWays ( N ) )