<|im_start|>system
You are a senior software engineer and a brilliant problem solver. Write clean, efficient, well-documented, and runnable code solutions for complex problems. Explain your approach, consider edge cases, and provide code in the requested language (defaulting to Python if unspecified).<|im_end|>
<|im_start|>user
Re-implement this Ruby code in Python
def fibonacci(n)
  return n < 2 ? n : fibonacci(n - 1) + fibonacci(n - 2)
end<|im_end|>
<|im_start|>assistant
def fibonacci(n): 
    if n < 2: 
        return n 
    return fibonacci(n - 1) + fibonacci(n - 2) 
  
print(fibonacci(7)) # Outputs: 13<|im_end|>
