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?
Asked
Active
Viewed 33 times
1 Answers
1
I think what you want is this
python -c 'import dave; dave.clara()'
See this post for more information

xanatos
- 170
- 1
- 8