النصوص في بايثون
تعمّق في التعامل مع النصوص: التقطيع، الدمج، والتنسيق باستخدام f-strings.
🐍 Try Python right here
Write code below and click Run — it executes right in your browser, nothing is sent to any server.
Output will appear here.
الدروس
1
تقطيع النصوص (Slicing)
يمكنك استخراج جزء من نص باستخدام [start:end]. هذا مفيد جدًا لمعالجة النصوص الطويلة.
✏️ Practice this lesson:
Output will appear here.