I am using linux mint, and to run a python file I have to type in the terminal: python [file path], so is there way to make the file executable, and make it run
python [file path]
Add this at the top of your file:
#!/usr/bin/python
This is a shebang. You can read more about it on Wikipedia.
After that, you must make the file executable via
chmod +x your_script.py