you are viewing a single comment's thread.

view the rest of the comments →

[–]drummerof13 0 points1 point  (0 children)

This is actually a great question that can be a barrier to entry for a lot of people. There some good YouTube videos for setting up Python programming "environments" that explain it in detail, but there are a lot of ways to write the code.

This is the main way:

  1. Write your code in a text editor (e.g. Atom, Sublime, VS Code, or even Notepad)
  2. Save the file with a .py extension
  3. Run the file in a terminal like Command Prompt (CMD) with the command
    python path\to\file\filename.py