ENع
الدرس 07 · Collections and functions

Lists and tuples

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

A list keeps many values in order under one name, and you can change it: add items, replace them, read them back by index. A tuple keeps values in order too, but once it is made it cannot change. Step through a six-line program, lists.py, that builds a list, grows it with append(), changes one slot, prints from it, then makes a tuple and watches Python refuse to change it.

12 دقيقة8 خطوات5 أسئلةBeginner
شكل 7 · تفاعلي
جارٍ تحميل الرسم…
أو ← →

اختبار يتاح بعد الخطوة الأخيرة.