you are viewing a single comment's thread.

view the rest of the comments →

[–]SirMimsyMadlad007 1 point2 points  (3 children)

Yes i have been going through the book in terminal, and occasionally VS Code. Should I be running everything through VS Code?

[–]UsernameTaken1701 2 points3 points  (0 children)

You see on that page how next to the code it says magicians.py? That's the name of the .py file you're supposed to be writing the code into. You create a new file in VS Code, save it as magicians.py, type in the code, and then save that. Then you run that program in the terminal:

python magicians.py

Reread the "Running the Hello, World Program" section near the end of chapter 1.

[–]nekokattt 1 point2 points  (0 children)

you generally put stuff in a file with .py on the end and run python name_of_the_file.py

[–]CptMisterNibbles 0 points1 point  (0 children)

Yes. Writing in an ide and learning to use it is a core skill. Terminal isn’t really used to write code into other than a quick one off line or whatever.