हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा १२

Write the rules of a local variable. - Computer Science

Advertisements
Advertisements

प्रश्न

Write the rules of a local variable.

टिप्पणी लिखिए

उत्तर

Rules of local variable:

  1. A variable with a local scope can be accessed only within the function/block that it is created in.
  2. When a variable is created inside the function/block, the variable becomes local to it.
  3. A local variable only exists while the function is executing.
  4. The formate arguments are also local to function.
shaalaa.com
Variable Scope
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 7: Python functions - Evaluation [पृष्ठ ११३]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 12 TN Board
अध्याय 7 Python functions
Evaluation | Q 1. | पृष्ठ ११३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×