John Roberts John Roberts - 1 year ago 101
Python Question

Fibonacci series in order, with first n numbers, without spaces, just with commas, like 1,1,2,3,5

It should look like 1,1,2,3,5 but i can't find out how to do print like this, i've tried with .join but it's not working.

fib_b = int(input("Fibonacci number? "))
def fib():
if n<=1:
return 1
return fib(n-1) + fib(n-2)
fibs= [fib(i) for i in range(fib_n)]
**print (fibs)**

Answer Source

What you are looking for seems similar to this. Please check if this answers your query.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download