HuroAI Ollama Playground

Chat with PhoenixCoder

Model is ready

PhoenixCoder

Hello! I'm PhoenixCoder, your AI coding assistant. I can help with code generation, debugging, and explanations. What would you like to work on today?

You

Can you help me write a Python function to calculate Fibonacci numbers?

PhoenixCoder

Certainly! Here's a Python function to calculate Fibonacci numbers recursively:

def fibonacci(n):
    if n <= 1:
        return n
    else:
        return fibonacci(n-1) + fibonacci(n-2)

Would you like me to explain how it works or provide an iterative version?

0/1000

Made with DeepSite LogoDeepSite - 🧬 Remix