for running a python program or any program for that matter you have a create and save a file containing the code
file_name.py
, press enterfile_name.py
python file_name.py
without saving a file be it any programming language, you can not execute it,
also to run a python open any terminal in any directory and type => python 'path\to\file.py'
, this executes the code if python
is installed and correctly setup, also the file.py
exists and the path is correct
using visual studio is one of the ways to create, save and execute python programs