News

That’s how to run a Python script in terminal or CMD. It’s a very straightforward process, but it’s extremely handy if you ever want to quickly carry out a bespoke task.
The first thing you must do is install the latest version of Python. To do that, open a terminal window on your Linux machine and issue the command: sudo apt-get install python3 -y.
Simply create a new .py file in the same folder as your main Python code. Then “import” that file as you now know how to do, then access the functions from within that module.