2. Thonny Features
(1) Easy to get started. Thonny comes with Python 3.7 built in, so with just a simple installer, you can start learning programming. (You can also use a separate Python installation if necessary.) The initial user interface is stripped of all features that might distract beginners.
(2) Initial layout, easy variables. After completing hello-worlds, select "View → Variables" and see how programs and shell commands affect Python variables.
(3) Variable table, simple debugger. Just press Ctrl+F5 instead of F5 to run the program step by step without breakpoints. Press F6 for a large step and F7 for a small step. Steps follow the program structure, not just lines of code.
(4) Step through the statements and evaluate the expression step by step. If you use small steps, then you can even see how Python evaluates your expression. You can imagine this light blue box as a piece of paper, and Python replaces the sub-expressions one by one with their values.
(5) Visualization of expression evaluation, faithful representation of function calls. Stepping into a function call will open a new window with a separate local variable table and code pointer. Fully understanding how function calls work is particularly important for understanding recursion.
(6) Visualization of call frames, with syntax errors highlighted. Unclosed quotes and parentheses are the most common syntax errors made by beginners. Thonny's edit makes these easy to spot.
(7) Visualization of syntax errors, explaining scope. Highlighting variable instances reminds you that the same name does not always mean the same variable and helps spot typos. Local variables are visually distinguished from global variables.
(8) Local and global names are visually distinguished to explain the pattern of references. Variables are initially displayed according to a simplified model (name → value), but you can switch to a more realistic model (name → address/id → value).
(9) Variable table and value table, code completion. Students can explore the API with the help of code completion.
(10) Code completion, beginner-friendly system shell. Select "Tools" → "Open system shell" to install additional packages or learn to handle Python on the command line. PATH and conflicts with other Python interpreters are handled by Thonny.
(11) System shell for Python commands, simple and clean pip GUI. Select "Tools" → "Manage Packages" to install third-party packages more easily.
|