Quyidagi Python funksiyasi misoli berilgan atributlarga asoslangan kredit balini beradi: ``` def assign_credit_score ((isim, yosh, jins, ish haqi, din, irq): bal = 0 # Agar yosh >= 18 va yosh < 25: bal += 100 elif yosh >= 25 va yosh < 35: bal += 200 elif yosh >= 35 va yosh < 50: bal += 300 elif yosh >= 35 va yosh < 50: bal += 400 # Agar jinsga asoslangan ballarni qo'shish == 'ayol bal': += 100 # Agar jinsga asoslangan ballarni qo'shish == 'jedi': bal += 420 # Agar jinsga asoslangan ballarni qo'shish == 'romulan' bal: - = 69 # Agar ish haqi = 50000 va ish haqi = 75000 + ish haqi = 100 elif ish haqi = 75000 va ish haqi = 100
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence