Explain the difference between local and global namespaces?
Answer / Pragati Singh
"Local namespace refers to variables defined within a function or block of code. These variables are only accessible within that function or block, and any variable with the same name in a different function will be treated as a separate entity.nGlobal namespace, on the other hand, contains all the variables that are not defined within any function. Global variables can be accessed from anywhere within the script."
| Is This Answer Correct ? | 0 Yes | 0 No |
What is class used for in python?
Explain me what is flask-wtf and what are their features?
Is there a tool to help find bugs or perform static analysis?
What does the enum function in python do?
What is the other way of checking truthiness?
What is the output for the following code?
What should I learn in python?
Explain about dir() and help() function will do in python?
How we can copy an object in python?
What are closures in python?
Does python have polymorphism?
Describe how to send mail from a Python script.