Open the terminal from you script directory ( Go to the folder where your python script is or the script you want to run. [ after going to the folder, click right mouse button … you find open in terminal option])
and run
python3 python_file_name.py
If you know your python file location you can run easily without going to that directory
in the “user” its will be your folder name
You can get any folder path with the folder property. [right mouse button click and that folder and you will find property option]
If you are on Ubuntu go to the folder and keyboard ctl+I
it will show the property
for example your directory is /home/user/Documents/python_example.py
Then just open the terminal and run
python3 /home/user/Documents/python_example.py