-2
I am making a personal challenge,develop the smallest program possible to manage a fibonati sequence and that shows the fi(gold number).
Most recent code :
nf = int(input("Quantos numeros da sequencia de fibonati voce quer ?"))
t = 0
tt = 1
ttt = 1
tf = 0
def fibo(a, b, c, d):
d = a
c = b + a
print("{} - ".format(a),end='')
a = b
b = c
return a, b, c, d
for i in range(nf):
t,tt,ttt,tf = fibo(t, tt, ttt, tf)
print(tf,".")
print(tt / t)
The problem arises when I try to finilizar,a wanted the sequence to termisse with a ".". As I noticed in the code I tried to use a room in the office,.
I don’t know how I can do, >.</
https://ideone.com/5Hfamy
– Andre