Loading topic
python3 (or python, or py on Windows) and see the >>> prompt. It also assumes you can run commands in a terminal. Everything here applies to the standard shell that ships with CPython. Other shells, such as IDLE, IPython, 6 min readpython3. It explains what the shell does between pressing Enter and seeing a result. Once you know that, you can predict when output appears5 min read>>> prompt. It also assumes you know basic Python types and how to define a small class. You will see why the same value can look different when you type its name and when you pass it to print(). You will also learn how to 5 min readNone. The examples work in Python 3 in the stan6 min read>>> prompt. It also assumes you know Python's block syntax: if, for, def, and indentation. It explains how the shell decides that a statement is unfinished, what it does with your input in the meantime, and how to avoid the usual mist6 min readimport does inside a live session, how to try a module's functi6 min read>>> and ... prompts. It also assumes you know basic Python syntax and what a module is. If you can type import math and call math.sqrt(16), you are ready.6 min readprint(). It covers two skills. The first is reading the report Python prints when a statement fails. The second is knowing what is still true in your session afterward.6 min read>>> and ... prompts. It covers how to fix a typo without retyping a line, how to recall earlier input, and how history is saved between sessions. It also covers what to do when the shell has no edi7 min readimportlib.reload() fixes that, and where reloading stops working.5 min readpython -i runs a script and then leaves you at the prompt. `PYTHONSTARTUP6 min readpython3 -i and importlib.reload() from earlier chapters. Here you decide when a shell session has stopped being the right tool, and you move th6 min read