0

I am following a python course on py4e.org and I have hit a wall in opening/running (do not know the correct term) a .py file in command prompt on a Windows computer. I have tried the solutions at these links thus far q1, q2, and some others. This is what I would like to try next, since I also have Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. showing when I open IDLE shell, but I do not know how to delete these words off the script.

  • 1
    For creating of py-files (Python scripts) you need a text editor (IDLE includes one but also others exist). Copy everything from the shell to the editor and remove problematic parts in the editor. It is not possible to do that in the shell. – Michael Butscher Feb 02 '21 at 01:01
  • Ok I used a text editor and I was able to open the file in command prompt! However I am receiving a syntax error after it shows what is in the file ```C:\Users\janni> cd py ex2_2.py``` is what I typed to open the file – Jannice Newson Feb 02 '21 at 01:15
  • "cd" is a command to change the working directory. Maybe you should first learn more about using the command line in general (unfortunately I don't know a good tutorial off the top of my head). – Michael Butscher Feb 02 '21 at 01:32

0 Answers0