Python Scope

A variable is only available from inside the function it is created is called scope. If variable created inside function called local scope.

Code :