0

For example, I have a python file named dave.py and I have created a function named clara within dave. Now, if I want to call clara from command prompt, how do I do it?

1 Answers1

1

I think what you want is this

python -c 'import dave; dave.clara()'

See this post for more information

Run function from the command line

xanatos
  • 170
  • 1
  • 8