I would like to assign the result of this function in a variable as a string
def fib(n):
a, b = 0, 1
while a < n:
print(a, end=' ')
a, b = b, a+b
print()
fib(100)
...prints from 1 to 89
I would like to assign the output to x as in the example:
x = fib(100)