0

Python Fibanacci problem help

Why isn’t this outputting anything? num = int(input()) def fibonacci(n): if n <= 1: return n else: return (fibonacci(n-1)+fibonacci(n-2)) fibonacci(num)

3rd May 2022, 3:29 PM
Boar Bytes
Boar Bytes - avatar
1 Resposta
+ 1
You are not printing anything... print returned value..
4th May 2022, 10:54 AM
Jayakrishna 🇮🇳