> For the complete documentation index, see [llms.txt](https://docs.arkannis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arkannis.net/programming/courses/python-pcap-31-03-course/functions-and-variable-scope/basic-variable-scope.md).

# Basic Variable scope

## Basic Variable scope:

```python
age = 27 # This is known as global scope
print(age)

def increase_age():
	age = 30 # Is this variable the same as the one defined above?
	# No, this is a different variable and is part of local scope
	
print(age) # prints 27
increase_age()
print(age) # still prints 27
```
