Important Notice:

Course Content
The Calendar Module
Library Function/Predefined Functions
0/4
Sys Module
Library Function/Predefined Functions
0/2
OS Module
Library Function/Predefined Functions
0/2
Functions in Python (Chapter-10) M3-R5
About Lesson

Type of Variable:-

                Variable कई तरह के होते हैं

Local variable:-

                वह variable जो किसी function के body या block के अन्दर define किया गया है। वह variable उसी function या block का local variable होता है local variable जिस block अथवा function के अन्दर define किया जाता है वह variable उसी block या function के अन्दर प्रयोग किया जाता है एक ही program में एक ही नाम के दो अलग-अलग function में variable define किए जा सकते हैं।

def fun():

    a=10     ———–> local variable

    print(a)

fun()

 

 

Type of Variable:-

                There are many types of variables

Local variable:-

                  The variable which is defined inside the body or block of a function. That variable is a local variable of that function or block. The local variable which is defined inside a block or function is used inside that block or function. In the same program, variables can be defined in two different functions of the same name.

def fun():

    a=10    ————-> local variable

    print(a)

fun()

error: Content is protected !!