Python Imports: From Scripts to Packages
Understand how Python finds your code and structure your projects for clean, error-free imports.
-
💬
مدرب ذكاء اصطناعي
اسأل عن أي درس واحصل على إجابة واضحة فورًا، في أي وقت. -
🕐
ابدأ في أي وقت
بلا جداول أو مواعيد نهائية — تعلّم بوتيرتك، وقتما يناسبك. -
🌐
بالعربية
الدروس والمهام والشهادة — كل ذلك بلغتك بالكامل.
حول هذه الدورة
Tired of seeing `ImportError` messages when you try to organize your Python code? As projects grow beyond a single file, making modules and packages work together can be confusing. This course demystifies Python's import system once and for all.
You will gain the confidence to structure multi-file applications, understand how Python locates your code, and resolve the common import errors that frustrate many developers. You'll move from writing simple scripts to building well-organized, maintainable Python projects.
What you'll learn:
- Understand how Python uses `sys.path` to discover modules and packages.
- Master the syntax for absolute and relative imports and know when to use each.
- Learn the crucial difference between running a file as a script versus a module with the `-m` flag.
- Structure your projects using modern conventions for reliable and maintainable code.
- Practice debugging common issues like circular imports and 'attempted relative import' errors.
- Use virtual environments to manage dependencies and create isolated project workspaces.
The course starts with the fundamentals of modules and the `import` statement, then progresses to practical project layouts and import strategies. You'll follow clear written explanations to build a solid mental model of how imports work.
This course is for beginners who know the basics of Python and are ready to build applications that span multiple files. No prior experience with packages or complex project structures is necessary.
Start building more robust and professional Python applications today.
ما الذي ستحصل عليه
-
📜
شهادة إتمام
أضفها إلى ملفك على LinkedIn -
💬
مدرّس AI شخصي
عالق في دورة؟ اسأل مدرّسك المدمج أي شيء، في أي وقت. -
🎧
النسخة الصوتية مضمَّنة
تعلَّم أثناء تنقُّلك — دون شاشة -
♾️
وصول مدى الحياة
عُد متى شئت، بلا انتهاء -
📱
الهاتف أو الكمبيوتر
يعمل في أي مكان وعلى أي جهاز -
💸
استرداد خلال 14 يومًا
دون أسئلة -
⚡
قصير ومركَّز
2 ساعة 36 دقيقة من المحتوى التطبيقي
المراجعات
لا توجد مراجعات بعد — كن أول من يشارك تجربته.
الأسئلة الشائعة
ما الذي أحتاجه لأخذ هذه الدورة؟ +
يكفي هاتف أو كمبيوتر متصل بالإنترنت. بدون تثبيتات أو أجهزة خاصة.
كيف يمكنني الدفع؟ +
بالبطاقة عبر Stripe. لا نخزن بيانات البطاقة — يتولى Stripe ذلك بأمان.
هل يمكنني استرداد المال؟ +
نعم — استرداد كامل خلال 14 يومًا، دون أسئلة.
إلى متى يستمر وصولي؟ +
إلى الأبد. بمجرد الشراء، الدورة لك تعود إليها متى شئت.
هل سأحصل على شهادة؟ +
نعم. عند الإتمام ستحصل على شهادة يمكنك إضافتها إلى ملفك في LinkedIn.
مصمَّم للعاملين في
التقنية
التصميم
المالية
التسويق
الرعاية الصحية
التعليم
الضيافة
التصنيع
×2
اشحن مرة واحدة وادفع النصف
أضف DH 1,000 واحصل على 200 رصيد، بحيث تكلف كل دورة حوالي DH 125.00. لا تنتهي صلاحية الأرصدة أبداً.
DH 1,000
200 رصيد
DH 125.00 / دورة
أفضل قيمة
DH 2,500
550 رصيد
DH 113.64 / دورة
DH 5,000
1200 رصيد
DH 104.17 / دورة
الرصيد يصلح لأي دورة ولا ينتهي.