ENع
الدرس 12 · Data structures

Strings: text in memory

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

A string is how a program holds text: a row of characters in memory, each with a numbered place, just like a list. Follow a short Python program as it reads one character, slices out a few, counts them, and then tries to change one. It can't: strings never change, so +, upper() and join() each build a brand-new string beside the old one.

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

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