How to run a python program in a shell without typing "python"
python
Solution
Make it executable
chmod +x Filecount.py
and add a hashbang to the top of `Filecount.py` which lets the os know that you want to use the python interpreter to execute the file.
#!/usr/bin/env python
Then run it like
./Filecount.py args
Problem
I am new to python. I wrote a program which can be executed by typing `python Filecount.py ${argument}` Why I see my teacher can run a program by only typing `Filecount.py ${argument}`. How to achieve that?