Skip to content

Glossary: Python Basics

Local variable

Also written: local

A variable created inside a function that exists only while the function runs. Code outside cannot see it, so use `return` to get a value out.

Where the book teaches it

Related terms

NameError