|
8 | 8 | \label{sec:lists:basicFunctions}% |
9 | 9 | % |
10 | 10 | \gitLoadAndExecPython{lists:lists_1}{}{collections}{lists_1.py}{}% |
11 | | -\listingPythonAndOutput{lists:lists_1}{lists_1.py}{% |
| 11 | +\listingPythonAndOutput{lists:lists_1}{% |
12 | 12 | A first example for using lists in \python:~creating, indexing, printing of and appending elements and other lists to lists.}{}% |
13 | 13 | % |
14 | 14 | \gitLoadAndExecPython{lists:lists_2}{}{collections}{lists_2.py}{}% |
15 | | -\listingPythonAndOutput{lists:lists_2}{lists_2.py}{% |
| 15 | +\listingPythonAndOutput{lists:lists_2}{% |
16 | 16 | A second example of using lists in \python: inserting and deleting elements, sorting and reversing lists.}{}% |
17 | 17 | % |
18 | 18 | \gitLoadAndExecPython{lists:lists_3}{}{collections}{lists_3.py}{}% |
19 | | -\listingPythonAndOutput{lists:lists_3}{lists_3.py}{% |
| 19 | +\listingPythonAndOutput{lists:lists_3}{% |
20 | 20 | A third example of using lists in \python: slicing, adding, and multiplying lists.}{}% |
21 | 21 | % |
22 | 22 | In \cref{lst:lists:lists_1}, we provide some first examples for using lists. |
|
147 | 147 | \label{sec:listExampleForErrorsAndRuff}% |
148 | 148 | % |
149 | 149 | \gitLoadAndExecPython{lists:lists_error}{}{collections}{lists_error.py}{}% |
150 | | -\listingPythonAndOutput{lists:lists_error}{lists_error.py}{% |
| 150 | +\listingPythonAndOutput{lists:lists_error}{% |
151 | 151 | A program processing lists which exhibits some subtle errors and inefficiencies.}{}% |
152 | 152 | % |
153 | 153 | Now, in the previous chapter, we learned that static code analysis tools can help us to discover subtle problems in our programs. |
|
206 | 206 | We can leave this outer call to \pythonil{list} away. |
207 | 207 |
|
208 | 208 | \gitLoadAndExecPython{lists:lists_fixed}{}{collections}{lists_fixed.py}{}% |
209 | | -\listingPythonAndOutput{lists:lists_fixed}{lists_fixed.py}{% |
| 209 | +\listingPythonAndOutput{lists:lists_fixed}{% |
210 | 210 | The corrected version of~\cref{lst:lists:lists_error}, taking into account the information given by \mypy\ in \cref{exec:lists:lists_error:mypy} and \ruff\ in \cref{exec:lists:lists_error:ruff}.}{}% |
211 | 211 | % |
212 | 212 | % |
|
0 commit comments