another useful method of executing the python code use the python idle gui shell to execute the python program on windows system open the python idle shell by pressing the window button of the keyboard type "pythonand click the "idle (python bit)to open the python shell create python file with py extension and open it with the python shell the file looks like the image given below