I have a file hello.py
and multiple methods inside. My file looks like:
def method1():
return data
def method2(args):
return args
if __name__ == '__main__':
method1()
method2(args)
If I run hello.py
, all methods run. But, how can I run these methods separately for example ?