human
Lucas Numbers | Iterative function.
declaring base values for positions 0 and 1.
generating number.
Driver Code"
How can the above be solved in Python?
assistant
#Here is code to lucas Numbers and the other steps required.
 def lucas ( n ) :
	a = 2
	b = 1
	if ( n == 0 ) :
		return a
	for i in range ( 2 , n + 1 ) :
		c = a + b
		a = b
		b = c
	return b
n = 9
print ( lucas ( n ) )