{"id":20038,"date":"2021-09-22T08:43:28","date_gmt":"2021-09-22T03:13:28","guid":{"rendered":"https:\/\/tutorial.eyehunts.com\/?p=20038"},"modified":"2022-07-08T17:33:17","modified_gmt":"2022-07-08T12:03:17","slug":"python-module-global-variable-example-code","status":"publish","type":"post","link":"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/","title":{"rendered":"Python module global variable | Example code"},"content":{"rendered":"\n<p>To create a module global variable you just need to declare the variable as global in Python. Global variables are also accessible from outside the module by using module_name <a href=\"https:\/\/tutorial.eyehunts.com\/js\/dot-operator-in-javascript-example-code\/\">dot <\/a>var_name.<\/p>\n\n\n\n<p><strong>Syntax<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>module_name.var_name<\/code><\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Python module global variable example<\/strong><\/h2>\n\n\n\n<p>Simple example code the only global variables Python really has are module-scoped variables.<\/p>\n\n\n\n<p>Let&#8217;s make a module-global variable just assign to a name.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>First, the main.py file with the variable name <strong>msg<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>msg = \"Hello Main Class\"<\/code><\/pre>\n\n\n\n<p>Now <a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-import-module-library-package-file-system\/\">import <\/a>class it into a <strong>Test.py<\/strong> and <a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-print-function-hello-world\/\">print <\/a>the value of variable <strong>msg<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import main\nprint(main.msg)<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"986\" height=\"705\" src=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-module-variables-1.jpg?resize=986%2C705&#038;ssl=1\" alt=\"Python module global variable\" class=\"wp-image-20181\" srcset=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-module-variables-1.jpg?w=986&amp;ssl=1 986w, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-module-variables-1.jpg?resize=768%2C549&amp;ssl=1 768w\" sizes=\"auto, (max-width: 986px) 100vw, 986px\" \/><\/figure>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Do comment if you have any doubts or suggestions on this Python variable tutorial.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>Note:<\/strong> IDE:&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.jetbrains.com\/pycharm\/\" target=\"_blank\">PyCharm<\/a>&nbsp;2021.3.3 (Community Edition)<\/p><p>Windows 10<\/p><p><strong>Python 3.10.1<\/strong><\/p><p>All<strong>&nbsp;Python Examples&nbsp;are in&nbsp;Python&nbsp;3<\/strong>, so Maybe its different from python 2 or upgraded versions.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>To create a module global variable you just need to declare the variable as global in Python. Global variables are also accessible from outside the module by using module_name dot var_name. Syntax Python module global variable example Simple example code the only global variables Python really has are module-scoped variables. Let&#8217;s make a module-global variable&hellip;&nbsp;<a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Python module global variable | Example code<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[30],"tags":[47,32],"post_series":[],"class_list":["post-20038","post","type-post","status-publish","format-standard","hentry","category-python","tag-python-modules","tag-python-variables"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python module global variable | Example code<\/title>\n<meta name=\"description\" content=\"To create a module global variable you just need to declare the variable as global in Python. Global variables are also accessible from...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python module global variable | Example code\" \/>\n<meta property=\"og:description\" content=\"To create a module global variable you just need to declare the variable as global in Python. Global variables are also accessible from...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-22T03:13:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-08T12:03:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-module-variables-1.jpg\" \/>\n<meta name=\"author\" content=\"Rohit\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rohit\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/\",\"name\":\"Python module global variable | Example code\",\"isPartOf\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-module-variables-1.jpg\",\"datePublished\":\"2021-09-22T03:13:28+00:00\",\"dateModified\":\"2022-07-08T12:03:17+00:00\",\"author\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\"},\"description\":\"To create a module global variable you just need to declare the variable as global in Python. Global variables are also accessible from...\",\"breadcrumb\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-module-variables-1.jpg?fit=986%2C705&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-module-variables-1.jpg?fit=986%2C705&ssl=1\",\"width\":986,\"height\":705},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tutorial.eyehunts.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python module global variable | Example code\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\",\"url\":\"https:\/\/tutorial.eyehunts.com\/\",\"name\":\"Tutorial\",\"description\":\"By EyeHunts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tutorial.eyehunts.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\",\"name\":\"Rohit\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777374971\",\"contentUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777374971\",\"caption\":\"Rohit\"},\"description\":\"Degree in Computer Science and Engineer: App Developer and has multiple Programming languages experience. Enthusiasm for technology &amp; like learning technical.\",\"url\":\"https:\/\/tutorial.eyehunts.com\/author\/rohit\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python module global variable | Example code","description":"To create a module global variable you just need to declare the variable as global in Python. Global variables are also accessible from...","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/","og_locale":"en_US","og_type":"article","og_title":"Python module global variable | Example code","og_description":"To create a module global variable you just need to declare the variable as global in Python. Global variables are also accessible from...","og_url":"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/","og_site_name":"Tutorial","article_published_time":"2021-09-22T03:13:28+00:00","article_modified_time":"2022-07-08T12:03:17+00:00","og_image":[{"url":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-module-variables-1.jpg","type":"","width":"","height":""}],"author":"Rohit","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rohit","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/","url":"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/","name":"Python module global variable | Example code","isPartOf":{"@id":"https:\/\/tutorial.eyehunts.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/#primaryimage"},"image":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/#primaryimage"},"thumbnailUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-module-variables-1.jpg","datePublished":"2021-09-22T03:13:28+00:00","dateModified":"2022-07-08T12:03:17+00:00","author":{"@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1"},"description":"To create a module global variable you just need to declare the variable as global in Python. Global variables are also accessible from...","breadcrumb":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/#primaryimage","url":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-module-variables-1.jpg?fit=986%2C705&ssl=1","contentUrl":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-module-variables-1.jpg?fit=986%2C705&ssl=1","width":986,"height":705},{"@type":"BreadcrumbList","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-module-global-variable-example-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tutorial.eyehunts.com\/"},{"@type":"ListItem","position":2,"name":"Python module global variable | Example code"}]},{"@type":"WebSite","@id":"https:\/\/tutorial.eyehunts.com\/#website","url":"https:\/\/tutorial.eyehunts.com\/","name":"Tutorial","description":"By EyeHunts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tutorial.eyehunts.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1","name":"Rohit","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/image\/","url":"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777374971","contentUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777374971","caption":"Rohit"},"description":"Degree in Computer Science and Engineer: App Developer and has multiple Programming languages experience. Enthusiasm for technology &amp; like learning technical.","url":"https:\/\/tutorial.eyehunts.com\/author\/rohit\/"}]}},"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":20024,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-module-variables-example-code\/","url_meta":{"origin":20038,"position":0},"title":"Python module variables | Example code","author":"Rohit","date":"September 18, 2021","format":false,"excerpt":"The only global variables really have are module-scoped variables in Python. You can't make a variable that is truly global; a variable can have a particular scope. Python module variables example A simple example code to make a module-global variable is just assigned to a name. Imagine a file called\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-module-variables.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-module-variables.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-module-variables.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-module-variables.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":36588,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-global-variable-across-modules\/","url_meta":{"origin":20038,"position":1},"title":"Python global variable across modules","author":"Rohit","date":"March 7, 2023","format":false,"excerpt":"Python global variable can access across modules if they are defined in a module that is imported by other modules. Generally not recommended to use global variables across modules as it can make code harder to understand and maintain. It is better to use local variables or pass variables between\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/03\/Python-global-variable-across-modules.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/03\/Python-global-variable-across-modules.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/03\/Python-global-variable-across-modules.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/03\/Python-global-variable-across-modules.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":20052,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-global-multiple-variables-example-code\/","url_meta":{"origin":20038,"position":2},"title":"Python global multiple variables | Example code","author":"Rohit","date":"September 22, 2021","format":false,"excerpt":"Setting up a variable in the module will work as a global variable you can define multiple variables in the class. The reason for this is that python treats classes as modules. Python global multiple variables example Simple example code defines multiple global variables from inside a class. This is\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-global-multiple-variables.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-global-multiple-variables.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-global-multiple-variables.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-global-multiple-variables.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-global-multiple-variables.jpg?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":20028,"url":"https:\/\/tutorial.eyehunts.com\/python\/difference-between-local-and-global-variables-in-python\/","url_meta":{"origin":20038,"position":3},"title":"Difference between local and global variables in Python","author":"Rohit","date":"October 13, 2021","format":false,"excerpt":"Python Global variables are variables declared outside of a function and Local variables are declared inside a function. Global variables have a global scope that can be accessed throughout an entire program, including within functions. And Local variables have a local scope it can be accessed only within the function\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Difference between local and global variables in Python","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/10\/Difference-between-local-and-global-variables-in-Python.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":20230,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-change-global-variable-in-function-example-code\/","url_meta":{"origin":20038,"position":4},"title":"Python change global variable in function | Example code","author":"Rohit","date":"September 23, 2021","format":false,"excerpt":"Use global keywords to access and change global variables in function in Python. Note: No need for global for mutable objects, if you're modifying them in place. Python change global variable example A simple example code won't assign the new value to a local variable and not change the value\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python change global variable in function","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/09\/Python-change-global-variable-in-function.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":36569,"url":"https:\/\/tutorial.eyehunts.com\/python\/global-constants-in-python\/","url_meta":{"origin":20038,"position":5},"title":"Global constants in Python","author":"Rohit","date":"March 6, 2023","format":false,"excerpt":"Python Global constants can declare a variable on the module level and use it in the module as a global variable. You can also import it to other modules. Example of defining a global constant using uppercase letters and underscores: MAX_VALUE = 100 Global constants in Python example Simple example\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/03\/Global-constants-in-Python.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/03\/Global-constants-in-Python.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/03\/Global-constants-in-Python.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/03\/Global-constants-in-Python.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/20038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/comments?post=20038"}],"version-history":[{"count":1,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/20038\/revisions"}],"predecessor-version":[{"id":31323,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/20038\/revisions\/31323"}],"wp:attachment":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/media?parent=20038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/categories?post=20038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/tags?post=20038"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/post_series?post=20038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}