human
Print Fibonacci sequence using 2 variables | Simple Python3 Program to print Fibonacci sequence.
Driver code"
Solution in Python:
 ... Write me a code to print Fibonacci sequence using 2 variables and the other steps required?
assistant
#Here is code to print Fibonacci sequence using 2 variables and the other steps required.
 def fib ( n ) :
	a = 0
	b = 1
	if ( n >= 0 ) :
		print ( a , end = ' ▁ ' )
	if ( n >= 1 ) :
		print ( b , end = ' ▁ ' )
	for i in range ( 2 , n + 1 ) :
		c = a + b
		print ( c , end = ' ▁ ' )
		a = b
		b = c
fib ( 9 )