Python Generators: Working with Yield and Return
Learn to write memory-efficient Python code by mastering generator functions and understanding the precise differences between the yield and return statements.
इस कोर्स के बारे में
Writing efficient Python code requires managing system memory effectively, especially when working with large datasets. Understanding the fundamental mechanics of generator functions is key to achieving this efficiency. This text-based course guides you through the core concepts of Python generators, clarifying the exact behavioral differences between the yield and return statements. You will transition from writing standard list-returning functions to constructing memory-efficient data pipelines. What you'll learn: Understand the fundamental mechanics of generator functions and how they pause execution; Differentiate between the yield and return statements and their impact on control flow; Manage generator lifecycles and handle StopIteration exceptions gracefully; Apply modern Python type hints to generators and iterators for cleaner, self-documenting code; Build memory-efficient data processing pipelines using clean, readable syntax. The course starts with essential terminology and the foundational mechanics of iteration in Python. You will then progress through written explanations and code examples that demonstrate how to control execution flow, manage state, and optimize performance. This course is designed for beginner Python developers looking to improve their code efficiency; no prior experience with generators is required. Start reading today to unlock the full power of memory-efficient programming in Python.
आपको क्या मिलेगा
-
📜
समापन प्रमाणपत्र
अपने LinkedIn प्रोफ़ाइल में जोड़ें -
💬
Personal AI tutor
Stuck on a lesson? Ask your built-in tutor anything, any time. -
♾️
लाइफटाइम एक्सेस
कभी भी लौटें, समाप्ति नहीं -
📱
फ़ोन या कंप्यूटर
कहीं भी, किसी भी डिवाइस पर -
💸
30-दिन वापसी
बिना सवाल -
⚡
छोटा और केंद्रित
1 घंटे 57 मिनट व्यावहारिक सामग्री
समीक्षाएँ
अभी कोई समीक्षा नहीं — अपना अनुभव पहले साझा करें।
शिक्षार्थियों ने यह भी लिया
ग्राहक डेटा और ब्रोकरेज गणनाओं को संभालने के लिए पायथन ऑब्जेक्ट-ओरिएंटेड सिद्धांतों और व्यावसायिक तर्क का उपयोग करके एक कार्यात्मक कंसोल-आधारित प्रबंधन प्रणाली विकसित करें।
$4.99
पाइथोन में एक मजबूत नींव बनाएं और आधुनिक प्रोग्रामिंग प्रथाओं और हाथों पर लिखित व्यायामों का उपयोग करके वास्तविक दुनिया की वैज्ञानिक और डेटा-चालित समस्याओं को हल करना सीखें।
$4.99
प्रोफाइलिंग निष्पादन, डेटा संरचनाओं को अनुकूलित करने और वेक्टरीकृत संचालन का उपयोग करके स्वच्छ, तेज और संसाधन कुशल पायथन कोड कैसे लिखें, सीखें.
$4.99
डेटा फ्रेम, स्पार्क SQL और RDDs का उपयोग करते हुए वितरित डेटा अनुप्रयोगों का निर्माण करें जबकि स्काला के साथ बड़े डेटा प्रसंस्करण आधारों को नियंत्रित करें।
$4.99
अक्सर पूछे जाने वाले प्रश्न
इस कोर्स के लिए मुझे क्या चाहिए? +
बस इंटरनेट वाला एक फ़ोन या कंप्यूटर। कोई इंस्टॉल नहीं, कोई विशेष हार्डवेयर नहीं।
मैं भुगतान कैसे करूँ? +
Stripe के माध्यम से कार्ड से, या क्रिप्टोकरेंसी से। हम कार्ड विवरण स्टोर नहीं करते — Stripe सुरक्षित रूप से संभालता है।
क्या मुझे रिफ़ंड मिल सकता है? +
हाँ — 30 दिनों में पूर्ण रिफ़ंड, बिना सवाल।
मेरा एक्सेस कब तक रहेगा? +
हमेशा के लिए। एक बार खरीदने पर कोर्स आपका है — कभी भी दोबारा देखें।
क्या मुझे प्रमाणपत्र मिलेगा? +
हाँ। पूरा करने पर एक प्रमाणपत्र मिलेगा जिसे आप अपने LinkedIn प्रोफ़ाइल में जोड़ सकते हैं।
इन क्षेत्रों के लिए
टेक
डिज़ाइन
वित्त
मार्केटिंग
स्वास्थ्य
शिक्षा
आतिथ्य
विनिर्माण