Siz xaritani funktsiyasini lambda funksiyasi bilan birga quyidagicha ishlatishingiz mumkin: ```python my_list = [1, 2, 3, 4, 5] my_list_doubled = list(map( lambda x: x * 2, my_list)) ``` Alternativ ravishda siz quyidagicha for-loopdan foydalanishingiz mumkin: ```python my_list = [1, 2, 3, 4, 5] for i in range ((( len(my_list)): my_list[i] = my_list[i]*2 ``` E'tibor beringki, birinchi yondashuv yangi ro'yxat yaratadi va ikkinchi yondashuv eski ro'yxatni o'zgartiradi.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence