Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Fibonacci Poem by Moff
def fibo_poem(text: str) -> str:
result = []
a = b = 1
arr = text.split()
while arr:
result.append(' '.join(arr.pop(0) if arr else '_' for _ in range(a)))
a, b = b, a + b
return '\n'.join(result)
Jan. 21, 2023
Comments: