---
title: "Discussion on \"Local and Global variables in Python\" | Hashnode"
description: "Discussion on \"Local and Global variables in Python\". Local Variables\nWhen you declare variables inside a function , they are not related in any manner to outside the function(i.e the main block) This is called as Scope of the variables.Every variable inside your program have a Scope associated with it...."
url: "https://hashnode.com/posts/local-and-global-variables-in-python/5f488f0fd5cea73bd114ff4b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Local and Global variables in Python](https://techwriter.hashnode.dev/local-and-global-variables-in-python?utm_source=hashnode&utm_medium=feed)

Local Variables When you declare variables inside a function , they are not related in any manner to outside the function(i.e the main block) This is called as Scope of the variables.Every variable inside your program have a Scope associated with it....

Aug 28, 2020 · 3 min read · techwriter.hashnode.dev  
Read the article

## Written by

[Abhishek Tayal](https://hashnode.com/@AbhishekTayal98)

@AbhishekTayal98

  
[View profile](https://hashnode.com/@AbhishekTayal98)

Code for Better

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
