Loading topic
python3 --version (or py --version on Windows) that the command works. You should also be able to open a terminal and type commands.3 min readpython3 --version (or py --version on Windows) prints a version number. You have already run code in the REPL. Next you need a place to write scripts that you can save and run again.3 min readpython3 --version (or py --version on Windows) works in your terminal. It also assumes you have tried the REPL and have a code editor. Running scripts in depth comes in the next chapter.2 min readhello.py containing one line. You will run that file, learn what the interpreter does with it, and learn why the directory you run it from matters.3 min readpython3 hello.py) and that you have a working Python 3 installation. Here you learn to read the error report Python prints when a program fails, so you can find the file, the line, and the kind of problem.2 min readpython3 hello.py (or py hello.py on Windows) and that you know how to define and call a function. Here you will make a script accept input from the command line, and you will make it safe to import.2 min readpython3 --version successfully, and run a script file. You do not need prior experience with packages.2 min readvenv. If your prompt does not show (.venv) after activation, revisit the virtual environments chapter first.2 min readpython3 hello.py (or py hello.py on Windows). It gives you a method for diagnosing setup failures, then covers the most common ones.3 min read