Title: Python Namespace and Variable Scope Resolution (LEGB) - AskPython
Open Graph Title: Python Namespace and Variable Scope Resolution (LEGB) - AskPython
X Title: Python Namespace and Variable Scope Resolution (LEGB) - AskPython
Description: In this tutorial, we will learn about Python namespace, the scope of a variable and the rules for variable scope resolution.
Open Graph Description: In this tutorial, we will learn about Python namespace, the scope of a variable and the rules for variable scope resolution.
X Description: In this tutorial, we will learn about Python namespace, the scope of a variable and the rules for variable scope resolution.
Opengraph URL: https://www.askpython.com/python/python-namespace-variable-scope-resolution-legb
X: @AskPython
Generator: WordPress 7.0
Domain: www.askpython.com
{"@context":"https://schema.org","@graph":[{"@type":["Person","Organization"],"@id":"https://www.askpython.com/#person","name":"Rnzo1zWtYm","sameAs":["https://twitter.com/AskPython"],"logo":{"@type":"ImageObject","@id":"https://www.askpython.com/#logo","url":"https://www.askpython.com/wp-content/uploads/2019/12/logo.svg","contentUrl":"https://www.askpython.com/wp-content/uploads/2019/12/logo.svg","caption":"Rnzo1zWtYm","inLanguage":"en-US"},"image":{"@type":"ImageObject","@id":"https://www.askpython.com/#logo","url":"https://www.askpython.com/wp-content/uploads/2019/12/logo.svg","contentUrl":"https://www.askpython.com/wp-content/uploads/2019/12/logo.svg","caption":"Rnzo1zWtYm","inLanguage":"en-US"}},{"@type":"WebSite","@id":"https://www.askpython.com/#website","url":"https://www.askpython.com","name":"Rnzo1zWtYm","publisher":{"@id":"https://www.askpython.com/#person"},"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https://www.askpython.com/wp-content/uploads/2019/08/python-variable-scope-resolution-legb.png","url":"https://www.askpython.com/wp-content/uploads/2019/08/python-variable-scope-resolution-legb.png","width":"972","height":"760","caption":"Python Variable Scope Resolution Legb","inLanguage":"en-US"},{"@type":"WebPage","@id":"https://www.askpython.com/python/python-namespace-variable-scope-resolution-legb#webpage","url":"https://www.askpython.com/python/python-namespace-variable-scope-resolution-legb","name":"Python Namespace and Variable Scope Resolution (LEGB) - AskPython","datePublished":"2019-08-16T11:10:36+00:00","dateModified":"2019-09-05T05:58:42+00:00","isPartOf":{"@id":"https://www.askpython.com/#website"},"primaryImageOfPage":{"@id":"https://www.askpython.com/wp-content/uploads/2019/08/python-variable-scope-resolution-legb.png"},"inLanguage":"en-US"},{"@type":"BlogPosting","headline":"Python Namespace and Variable Scope Resolution (LEGB) - AskPython","datePublished":"2019-08-16T11:10:36+00:00","dateModified":"2019-09-05T05:58:42+00:00","author":{"@type":"Person","name":"AskPython"},"name":"Python Namespace and Variable Scope Resolution (LEGB) - AskPython","@id":"https://www.askpython.com/python/python-namespace-variable-scope-resolution-legb#schema-24260","isPartOf":{"@id":"https://www.askpython.com/python/python-namespace-variable-scope-resolution-legb#webpage"},"publisher":{"@id":"https://www.askpython.com/#person"},"image":{"@id":"https://www.askpython.com/wp-content/uploads/2019/08/python-variable-scope-resolution-legb.png"},"inLanguage":"en-US","mainEntityOfPage":{"@id":"https://www.askpython.com/python/python-namespace-variable-scope-resolution-legb#webpage"}}]}
| og:locale | en_US |
| og:type | article |
| og:site_name | AskPython |
| article:section | Python Programming |
| og:updated_time | 2019-09-05T05:58:42+00:00 |
| og:image | https://www.askpython.com/wp-content/uploads/2019/08/python-variable-scope-resolution-legb.png |
| og:image:secure_url | https://www.askpython.com/wp-content/uploads/2019/08/python-variable-scope-resolution-legb.png |
| og:image:width | 972 |
| og:image:height | 760 |
| og:image:alt | Python Variable Scope Resolution Legb |
| og:image:type | image/png |
| article:published_time | 2019-08-16T11:10:36+00:00 |
| article:modified_time | 2019-09-05T05:58:42+00:00 |
| twitter:card | summary_large_image |
| twitter:creator | @AskPython |
| twitter:image | https://www.askpython.com/wp-content/uploads/2019/08/python-variable-scope-resolution-legb.png |
| twitter:label1 | Written by |
| twitter:data1 | Pankaj Kumar |
| twitter:label2 | Time to read |
| twitter:data2 | 2 minutes |
| msapplication-TileImage | https://www.askpython.com/wp-content/uploads/2019/12/cropped-favicon-1-270x270.png |
Links:
Viewport: width=device-width, initial-scale=1, maximum-scale=5, viewport-fit=cover
Robots: follow, index, max-snippet:-1, max-video-preview:-1, max-image-preview:large