inPace
All coursesكل الدورات

Python: the full course

  • about 10 h of lessonsحوالي 10 ساعة من الدروس
  • 11 modulesوحدات · 29 lessonsدروس
  • Englishالإنجليزية

A complete Python course for beginners, on the syllabus of Harvard's CS50P: functions, conditionals, loops, exceptions, libraries, unit tests, files, regular expressions, classes and the rest of the language. Every week has Harvard's lecture, short written lessons with the code that matters, a program to write, a question to answer and a quiz, and it ends with your own project. Plan: 11 weeks, about an hour a day.

byمن إعداد inPace checkedموثّق

pythonprogrammingbeginnerharvardcs50

On these roadmaps:ضمن هذه المسارات: Python backend developer, Build inPace yourself, Become a data analyst, Get hired as an AI engineer, Deep learning, with a machine learning refresh, Machine learning, from the maths up

What's insideمحتوى الدورة

Each module ends with tasks. The next module opens when they're done.تنتهي كل وحدة بمهام، وتُفتح الوحدة التالية عند إنجازها.

  1. Functions and variables 4 lessonsدروس · 80 min د
    • Start here15 min د
    • Text: print, input and stringsYouTubeيوتيوب20 min د
    • Numbers: int, float and rounding20 min د
    • Your own functions25 min د
    Practical taskمهمة عمليةExplain in your wordsاشرح بكلماتكQuizاختبار · 4 questionsأسئلة
  2. Conditionals 2 lessonsدروس · 40 min د
    • if, elif and elseYouTubeيوتيوب20 min د
    • Writing conditions well20 min د
    Practical taskمهمة عمليةExplain in your wordsاشرح بكلماتكQuizاختبار · 4 questionsأسئلة
  3. Loops 3 lessonsدروس · 60 min د
    • while and forYouTubeيوتيوب20 min د
    • Lists and dictionaries25 min د
    • Nested loops and small functions15 min د
    Practical taskمهمة عمليةExplain in your wordsاشرح بكلماتكQuizاختبار · 4 questionsأسئلة
  4. Exceptions 2 lessonsدروس · 40 min د
    • Errors and try/exceptYouTubeيوتيوب20 min د
    • Asking until the input is right20 min د
    Practical taskمهمة عمليةExplain in your wordsاشرح بكلماتكQuizاختبار · 4 questionsأسئلة
  5. Libraries 3 lessonsدروس · 55 min د
    • Modules and the standard libraryYouTubeيوتيوب20 min د
    • Packages, pip and virtual environments20 min د
    • Your own modules15 min د
    Practical taskمهمة عمليةExplain in your wordsاشرح بكلماتكQuizاختبار · 4 questionsأسئلة
  6. Unit tests 2 lessonsدروس · 35 min د
    • assert and pytestYouTubeيوتيوب20 min د
    • What to test15 min د
    Practical taskمهمة عمليةExplain in your wordsاشرح بكلماتكQuizاختبار · 4 questionsأسئلة
  7. File I/O 3 lessonsدروس · 55 min د
    • Reading and writing filesYouTubeيوتيوب20 min د
    • CSV files20 min د
    • JSON and paths15 min د
    Practical taskمهمة عمليةExplain in your wordsاشرح بكلماتكQuizاختبار · 4 questionsأسئلة
  8. Regular expressions 2 lessonsدروس · 45 min د
    • Patterns with re.searchYouTubeيوتيوب25 min د
    • Groups, re.sub and cleaning data20 min د
    Practical taskمهمة عمليةExplain in your wordsاشرح بكلماتكQuizاختبار · 4 questionsأسئلة
  9. Object-oriented programming 3 lessonsدروس · 65 min د
    • Classes and objectsYouTubeيوتيوب25 min د
    • Properties and class methods20 min د
    • Inheritance and special methods20 min د
    Practical taskمهمة عمليةExplain in your wordsاشرح بكلماتكQuizاختبار · 4 questionsأسئلة
  10. Et cetera: the rest of the language 3 lessonsدروس · 60 min د
    • Sets, type hints and docstringsYouTubeيوتيوب20 min د
    • Comprehensions, lambda and generators25 min د
    • *args, **kwargs and argparse15 min د
    Practical taskمهمة عمليةExplain in your wordsاشرح بكلماتكQuizاختبار · 4 questionsأسئلة
  11. Final project 2 lessonsدروس · 40 min د
    • Plan and build your project30 min د
    • Where to go nextoptionalاختياري10 min د
    Practical taskمهمة عمليةExplain in your wordsاشرح بكلماتكQuizاختبار · 4 questionsأسئلة

Read a lesson firstاقرأ درسًا أولًا

Start here

This is a complete Python course for beginners: from your first line of code to functions, loops, errors, libraries, tests, files, regular expressions and classes. It follows the syllabus of Harvard's CS50P (CS50's Introduction to Programming with Python), one of the best free programming courses there is.

How each module works

  1. The written lessons are the course: they explain every idea with the code that matters, so you can learn everything from them alone.
  2. Harvard's lecture is optional. It sits on top of each module's first lesson for anyone who likes learning by video. Skip it, or watch it in parts: inPace remembers where you stopped.
  3. Practice: a small program to write, a question to answer in your own words, and a quiz.

Your plan: 11 weeks, about an hour a day

Week Module Optional lecture
1 Functions and variables 1 h 46 min
2 Conditionals 56 min
3 Loops 1 h 21 min
4 Exceptions 45 min
5 Libraries 1 h 18 min
6 Unit tests 51 min
7 File I/O 1 h 32 min
8 Regular expressions 2 h 05 min
9 Object-oriented programming 2 h 51 min
10 Et cetera 2 h 29 min
11 Final project none

Set up your computer

  1. Install Python 3 from python.org/downloads. On Windows, tick Add python.exe to PATH on the first screen.
  2. Install VS Code and its Python extension.
  3. Make a folder for this course, open it in VS Code, and create a file named hello.py:
print("hello, world")
  1. Open the terminal (Terminal → New Terminal) and run it: python hello.py (on Mac and Linux, python3 hello.py).

Can't install anything? Use cs50.dev, Harvard's free editor in the browser (sign in with GitHub).

Going further

Licenseالرخصة: CC-BY-4.0 · Updatedآخر تحديث 2026-11-14

Lectures: CS50's Introduction to Programming with Python (CS50P) by David J. Malan, Harvard University, embedded from YouTube, licensed CC BY-NC-SA 4.0 (cs50.harvard.edu/python). Written lessons, tasks and questions: inPace, following the CS50P syllabus and the official Python tutorial.

Add to inPaceأضف إلى inPace