Important Notice:

Course Content
Scope & Module in Python (Chapter-12) M3-R5
About Lesson

Local:-

    यह किसी भी python प्रोग्राम में उपलब्ध function or lambda expression का code block या body होता है यह python scope में वे नाम हैं जिन्हें हम function loop के अन्दर define करते हैं अतः यह नाम सिर्फ उस function या block code में ही use कर सकते हैं local name space function or code block execution के बाद delete हो जाता है।

            Local variable किसी function या class method के अन्दर होता है। और उसे उन्ही scope में access भी किया जा सकता है। किसी भी local variable को function or class के बाहर access नहीं कर सकते हैं।

 

Local:-

    This is the code block or body of the function or lambda expression available in any python program. These are the names in python scope which we define inside the function loop, hence this name can be used only in that function or block code local. The name space gets deleted after function or code block execution.

            Local variable is inside a function or class method. And it can also be accessed in the same scope. Any local variable cannot be accessed outside the function or class.

error: Content is protected !!