Calling a function within a function

Okay here’s my sample code :

[code]def read_parameter():
do something here

def parse_parameter():
read_parameter()[/code]

and on a button I am calling parse_parameter() But its giving me this error.

NameError: global name 'read_parameter' is not defined

You are using legacy scoping. You must use standard scoping to call functions this way.

You can find out more about standard/legacy scoping here: perfectabstractions.com/blog … rd-scoping

Best,