الانتقال إلى المحتوى
تعلم البرمجة — بايثون، جافا، C، SQL والويب

أساسيات بايثون

خطواتك الأولى جداً في البرمجة — لا حاجة للخبرة.

  • بايثون
  • 22 دروس
  • 6 projects
  • 15 videos
  • يعمل في متصفحك

على هذا الجهاز: 0 من 22 درس مكتمل

ابدأ الدورة

كل درس يعمل في متصفحك — اكتب كوداً حقيقياً، واضغط على تشغيل، وتقوم المهام بمراجعة نفسها. مجاني، لا حاجة لحساب، مع ملاحظات مترجمة مقترنة بالإنجليزية.

الدروس في هذا الكورس

عرض 26 من 26 درس

Part 1 You build: Project: Mad Libs

  1. شغله! الأزرار · عندما يحدث خطأ ما · عندما ينتظر البرنامج منك شيئًا Lesson 0 · 3 مهام مطلوبة · ★
  2. برنامجك الأول Show text with print · Strings · Comments Lesson 1 · 3 مهام مطلوبة · ★ فيديو
  3. المتغيرات A box with a name · Make a variable · Naming rules · Change a variable Lesson 2 · 3 مهام مطلوبة · ★ فيديو
  4. الأعداد & العمليات Two kinds of number · Add, subtract, multiply, divide · Whole-number division, remainder, powers · Order of operations Lesson 3 · 3 مهام مطلوبة · ★ فيديو
  5. الحصول على إدخال Ask the user with input · When your program waits · input always gives a string · Turn text into a number Lesson 4 · 3 مهام مطلوبة · ★ فيديو
  6. التعامل مع النصوص Letters have positions · Take a slice · Length and changing case · f-strings build text Lesson 5 · 4 مهام مطلوبة · ★★ فيديو
  7. مشروع Project: Mad Libs Collect the words · Change a word · A title with a line under it مشروع · ★★

Part 2 You build: Project: Guess the number

  1. اتخاذ القرارات Making a choice · Comparisons · if / elif / else · The remainder Lesson 6 · 4 مهام مطلوبة · ★★ فيديو
  2. حلقات العد Repeat with for · Counting with range · Build a total (accumulator) · Words and a number on one line Lesson 7 · 4 مهام مطلوبة · ★★ فيديو
  3. حلقات While Loop while a condition is true · Always change the condition · break and continue · Checking before or after Lesson 8 · 3 مهام مطلوبة · ★★ فيديو
  4. مشروع Project: Guess the number One guess · Keep guessing · Print the count · The sentence مشروع · ★★★

Part 3 You build: Project: Quiz with a score

  1. Lists (1-D arrays) A list holds many values · Get and change items · Add items and count them · Loop over a list Lesson 9 · 3 مهام مطلوبة · ★★ فيديو
  2. مشروع Project: Quiz with a score Two lists that match · Keep the score · Forgive the typing مشروع · ★★★

Part 4 You build: Project: Rock, paper, scissors

  1. الدوال Name a block of code · Give it inputs (parameters) · Send back a result (return) · return vs print Lesson 10 · 3 مهام مطلوبة · ★★ فيديو
  2. مشروع Project: Rock, paper, scissors Who wins? · Functions can use functions · Check what the player typed · Play for real مشروع · ★★★

Part 5 You build: Project: Text adventure

  1. المجال والحجج Local variables · Global variables · Default values · How arguments are passed Lesson 11 · 4 مهام مطلوبة · ★★★ فيديو
  2. Dictionaries (records) Store data by name · Get and set values · A dictionary as a record · Check and loop Lesson 12 · 3 مهام مطلوبة · ★★★ فيديو
  3. مشروع Project: Text adventure A dictionary inside a dictionary · Is there a door? · Follow a list of directions · Play for real مشروع · ★★★★

Part 6 You build: Project: Hangman

  1. التخطيط والكود الوهمي Plan before you code · Decomposition · Abstraction · Structured English Lesson 13 · 3 مهام مطلوبة · ★★ فيديو
  2. الأخطاء والاختبار Three kinds of error · Syntax errors · Runtime errors · Logic errors Lesson 14 · 3 مهام مطلوبة · ★★★ فيديو
  3. دمج كل شيء معًا The plan · Handy built-ins for lists · A pattern you will reuse: count items that pass a test Lesson 15 · 3 مهام مطلوبة · ★★★ فيديو
  4. مشروع Project: Hangman Plan first · Build a string letter by letter · Stop as soon as you know · The game loop مشروع · ★★★★

القراءة والموارد

  1. نبذة قصيرة عن بايثون Where Python came from · Why the funny name · Built for people to read · Python today القراءة والموارد
  2. ما يُستخدم بايثون له What people build with Python · Websites and apps · Data, AI, and science · Automation القراءة والموارد
  3. أين تتعلم المزيد العب ومارس · اقرأ واستشر · المزيد من الكورسات في هذا الموقع · نصيحة القراءة والموارد
  4. إعداد حاسوبك Run Python on your own computer · Step 1 — Install Python · Step 2 — Install VS Code · Step 3 — Add the Python extension القراءة والموارد
Open the Python reference Every topic in one place, with short examples you can run.

أين تتعلم المزيد

تسجيل الدخول أو إنشاء حساب

IGCSE, A-Level & AP