ENع
الدرس 01 · Basics

Getting started with Python

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

Python is a readable, general-purpose programming language. Meet the interpreter that runs it, try a line at the >>> prompt, then step through a four-line program, hello.py, that greets you, asks your name and says hello back. Finish with the one rule that surprises every beginner: spaces at the start of a line matter.

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

جرّب

0/2 تمارين ناجحة

Your first message

Store the text Hello, Python! in a variable called message, then print it.

اضغط Ctrl/Cmd + Enter للتشغيل. يضيف Tab مسافة بادئة؛ واضغط Escape ثم Tab لمغادرة المحرّر.

جاهز
المخرجات
شغّل الشيفرة لرؤية مخرجاتها.
الاختبارات
  • تحقّق من الشيفرة عندما تكون مستعدًا.

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