F = [1,1] def fibo(n): for i in range(2,n+1): F.append(F[i-2]+F[i-1]) fibo(21) for i in range(21): q = F[i+1]/F[i] print("Q(",i,") = ",q)