Python 3-da `class` - bu obyektlar yaratish uchun kod shabloni. Ob'ektlar sinfning instansiyasi bo'lib, ular sinfda belgilangan atributlar (xilliklar) va usullarga (funksiyalar) ega. Python 3-da sinfni belgilash uchun quyidagi qadamlarni bajarishingiz mumkin: 1. Sinf kalit so'zini ishlating, keyin sinf nomi bilan sinf nomini boshlang. Sinf nomidan keyin sinfning boshini ko'rsatish uchun ikki ustun qo'shing. Sinf atributlari va usullarini sinf tanasida aniqlash uchun ularni kiriting. Python 3-da sinfni qanday yaratish va ishlatishning oddiy misoli: ``python # "Odam" sinfini belgilash: #1. Sinfni belgilash uchun __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence