follow the stepsright click on my computer--properties -->advanced system setting -->environment variable -->new in variable name write path and in variable value copy path up to :/python ( path where python is installedclick ok ->ok running python programthere are different ways of working in python how to execute python program using command promptif you want to create python file in py extension and run you can use the windows command prompt to execute the python code examplehere is the simple code of python given in the python file demo py it contains only single line code of python which prints the text "hello world!on execution sohow you can execute the python program using the command prompt to see thisyou have to first open the command prompt using the 'window+rkeyboard shortcut nowtype the word 'cmdto open the command prompt this opens the command prompt with the screen as given below change the directory location to the location where you have just saved your python py extension file we can use the cmd command 'cdto change the directory location use 'cd to come out of directory and "cdto come inside of the directory get the file location where you saved your python file to execute the python fileyou have to use the keyword 'pythonfollowed by the file name with extension py see the example given in the screen above with the output of the file