Calling a function within a function

Okay here’s my sample code :

[code]def read_parameter():
do something here

def parse_parameter():

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: … rd-scoping