47dbd6ea-44a4-457f-960b-09e366859d89
prompter
Write Python code to generate N Tribonacci numbers
629a45dc-76e4-4afe-88ff-477a0769cdec
47dbd6ea-44a4-457f-960b-09e366859d89
assistant
```python
def tribonacci(n):
    if n == 0 or n == 1:
        return 0
    if n == 2:
        return 1
    return tribonacci(n-1) + tribonacci(n-2) + tribonacci(n-3)
```