human
Give me a code to sum of Fibonacci Numbers and the other steps required given the following:
Sum of Fibonacci Numbers | Computes value of first fibonacci numbers.
Initialize result.
Add remaining terms.
Driver program to test above function"
Solution in Python:
assistant
#Here is code to sum of Fibonacci Numbers and the other steps required.
 def calculateSum ( n ) :
	if ( n <= 0 ) :
		return 0
	fibo = [ 0 ] * ( n + 1 )
	fibo [ 1 ] = 1
	sm = fibo [ 0 ] + fibo [ 1 ]
	for i in range ( 2 , n + 1 ) :
		fibo [ i ] = fibo [ i - 1 ] + fibo [ i - 2 ]
		sm = sm + fibo [ i ]
	return sm
n = 4
print ( " Sum ▁ of ▁ Fibonacci ▁ numbers ▁ is ▁ : ▁ " , calculateSum ( n ) )