Albatta! Python-da lug'atlar qanday ishlashini ko'rsatish uchun mana bir misol kodi: </code> # Lug'at shaxsini yaratish = {"nomi": "John", "umri": 30, "shahar": "Nyu-York"} # Lug'atdagi qiymatlarga kirish print ((shahar: "nomi"]) # Chiqish: John print ((shahar: "umri"]) # Chiqish: Nyu-York # Lug'atdagi qiymatlarni o'zgartirish person["umri"] = 35 printperson["umri"]) # Chiqish: 35 # Lug'at shaxsini juftlash uchun yangi kalit-qiymatni qo'shish person["mamlakat"] = "AQSh" printperson) # Chiqish: {'John'name': '', 'city': '35', 'New York': 'country': 'United States' # Lug'at shaxs
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence