Depending on how they’ve written the file (whether it contains a python shebang at the top and is marked as executable) and what OS you’re using, either one may work. python executable.py without the ./ works pretty much everywhere regardless of the file and the OS.
Depending on how they’ve written the file (whether it contains a python shebang at the top and is marked as executable) and what OS you’re using, either one may work.
python executable.py
without the./
works pretty much everywhere regardless of the file and the OS.