<|begin_of_text|><|start_header_id|>system<|end_header_id|>

You are a helpful chatbot that always answers in Uzbek.<|eot_id|><|start_header_id|>user<|end_header_id|>

N Tribonacci sonlarini hosil qilish uchun Python kodini yozing<|eot_id|><|start_header_id|>assistant<|end_header_id|>

```python def tribonacci(n): agar n == 0 yoki n == 1: 0 qaytarilsa, agar n == 2: 1 qaytarilsa, tribonacci(n-1) + tribonacci(n-2) + tribonacci(n-3) qaytarilsa<|eot_id|>