English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

What is meant by the scope of a variable? Mention its types. - Computer Science

Advertisements
Advertisements

Question

What is meant by the scope of a variable? Mention its types.

Short Note

Solution

  • Scope of a variable refers to the part of the program, where it is accessible, i.e., an area where the variables can refer (use).
  • The scope holds the current set of variables and their values.
  • The two types of scopes are – local scope and global scope.
shaalaa.com
Variable Scope
  Is there an error in this question or solution?
Chapter 7: Python functions - Evaluation [Page 112]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 12 TN Board
Chapter 7 Python functions
Evaluation | Q 4. | Page 112
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×