human
Give me a code to leonardo Number and the other steps required given the following:
Leonardo Number | A simple recursive program to find n - th leonardo number ..
Driver code"
How can the above be solved in Python?
assistant
#Here is code to leonardo Number and the other steps required.
 def leonardo ( n ) :
	dp = [ ] ;
	dp . append ( 1 ) ;
	dp . append ( 1 ) ;
	for i in range ( 2 , n + 1 ) :
		dp . append ( dp [ i - 1 ] + dp [ i - 2 ] + 1 ) ;
	return dp [ n ] ;
print ( leonardo ( 3 ) ) ;