<|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|>

Python-da Fibonacci ketma-ketligini topish uchun menga funksiya yarating<|eot_id|><|start_header_id|>assistant<|end_header_id|>

Bu Python-dagi funksiya bo'lib, u berilgan n son uchun Fibonacci ketma-ketligini hisoblaydi: def fibonacci(n): if n < 2: return n else: return fibonacci(n-1) + fibonacci(n-2) Funksiyani ishlatish uchun, shunchaki fibonacci(n) ni chaqiring, bu yerda n - Fibonacci ketma-ketligining n sonli qismlarini hisoblash. Funksiya ketma-ketlikning o'ninchi qismini qaytaradi. Masalan, fibonacci(6) 8 ni qaytaradi, bu Fibonacci ketmasining oltinchi qismining qiymati.<|eot_id|>