@@ -66,14 +66,14 @@ simply type the following into an editor like Spyder or PyScripter script:
66
66
new_string = our_string.
67
67
68
68
When you type the period to select one of the methods of ``our_string ``, your editor might pop up a
69
- selection window showing all the methods (there are around 70 of them --- thank goodness we'll only
69
+ selection window — typically by pressing `` Tab `` — showing all the methods (there are around 70 of them --- thank goodness we'll only
70
70
use a few of those!) that could be used on your string.
71
71
72
72
.. image :: illustrations/string_methods.png
73
73
74
74
When you type the name of the method, some further help about its parameter and return
75
- type, and its docstring, will be displayed. This is a good example of a tool --- PyScripter ---
76
- using the meta-information --- the docstrings --- provided by the module programmers.
75
+ type, and its docstring, may be displayed by your scripting environments (for instance, in a Jupyter
76
+ notebook you can get this inofrmation by pressing `` Shift+Tab `` after a function name).
77
77
78
78
.. image :: illustrations/swapcase.png
79
79
@@ -91,8 +91,8 @@ selects a single character substring from a string:
91
91
92
92
93
93
The expression ``fruit[1] `` selects character number 1 from ``fruit ``, and creates a new
94
- string containing just this one character. The variable ``m `` refers to the result.
95
- When we display ``m ``, we could get a surprise:
94
+ string containing just this one character. The variable ``letter `` refers to the result.
95
+ When we display ``letter ``, we could get a surprise:
96
96
97
97
.. sourcecode :: pycon
98
98
0 commit comments