to execute the code directly in the interactive mode you have to open the interactive mode press the window button and type the text "pythonclick the "python ( bitdesktop appas given below to open the interactive mode of python you can type the python code directly in the python interactive mode herein the image below contains the print program of python press the enter button to execute the print code of python the output gives the text "hello world!after you press the enter button type any code of python you want to execute and run directly on interactive mode