<|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 int ning pufakchalar boʻyicha saralash roʻyxati<|eot_id|><|start_header_id|>assistant<|end_header_id|>

Bu pythonda butun sonlar ro'yxatini to'plamli tartiblash kodidir: ``` def bubbleSort ((arr): n = len ((arr) # Matrida barcha elementlarni i uchun oralab o'tish: ((n): # Oxirgi i elementlari j uchun allaqachon mavjud: ((0, n-i-1): # Agar topilgan element keyingi elementdan kattaroq bo'lsa, almashtirish: arr[j] > arr[j+1]: arr[j], arr[j+1] = arr[j+1], arr[j] qaytarib berish arr # Butun sonlar ro'yxati namunasidan foydalanishni sinab ko'ring arr = [64, 34, 25, 12, 22, 11, 90] print ((("Tartiblangan matr:", bubbleSort ((arr)) ```<|eot_id|><|start_header_id|>user<|end_header_id|>

Rahmat! Bu kod ishlamoqda.<|eot_id|>