我创建了一个代码来显示斐波那契数列中的数字。我想要一种方法来允许用户输入显示的数字数量。这是我的代码:
total = 1
total2 = 0
for i in range (*Number of numbers/2*):
total = total + total2
print (total)
total2 = total + total2
print (total2)
#Shows golden ratio
total3 = total2/total
print (total3)
有人能帮我吗?那会很好!