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

Menga Python-da 3 ta suv havzasini, 2 ta pompani va elektr generatorini avtomatik ravishda boshqaradigan kodni yozing, 3 ta havza 2 ta pompadan to'ldirilsin va 1 va 2 ta havzalarda 500 soat davomida suvni alternativ ravishda to'ldirish uchun<|eot_id|><|start_header_id|>assistant<|end_header_id|>

Quyidagi Python kodining misoli 3 ta havza, 2 ta nasos va elektr generatorini avtomatlashtirish tizimini boshqaradi, 3 ta havzani 2 ta nasosdan to'ldirib turish va suvni 1 va 2 ta havzalarda 500 soat davomida almashtirish uchun vaqtni ajratadi: ``` import time class Havza: __ definit__(self, kapasite): self.capacite = self.level = 0 defuter_add_water, self, quantite): self.level = minself.level + self.level = self.withdraw_water, self.level = max.self.level - quantite, 0) def_vide1 = self.devlet_level = self.devlet_level = self.devlet_level = self.devlet_level = self.devlet_level = self.devlet_level = self.devlet_level = self.devlet<|eot_id|>