Python - Fibonacci sequence


num = int(input('which term do you want? : '))
a = 1;
b = 1;
print(1,a)
for i in range(2, num+1):
    a,b = b,a+b
    print(i,a)

雅思寫作11/10

  example resulted from chatgpt The line graph illustrates the monthly sales of four bakery products—baked bread, croissants, cupcakes, and ...