How can I run a specific function from the Powershell (or, for that matter, any other) terminal? What is missing from my python file ?
I have a python file my_file.py :
def func1(): print('first function') def func2(): print('second function') I have tried running python -m my_file func2, but I am not getting the expected output. What am I missing?