python-tutorial icon indicating copy to clipboard operation
python-tutorial copied to clipboard

Errors found in `input_output`

Open despadam opened this issue 1 year ago • 8 comments

despadam avatar Nov 28 '24 12:11 despadam

Remove the "Note" box at the very beginning: it mentions Functional Programming, which has been moved to the Advanced Tutorial

edoardob90 avatar Nov 28 '24 12:11 edoardob90

Also remove explanation with __str__

despadam avatar Nov 28 '24 13:11 despadam

We forgot a %%ipytest debug in "Exercises on string input and output"

despadam avatar Nov 28 '24 13:11 despadam

The pass statement is confusing them here. Revert to using return in the exercises that should return something, so that they modify that line. Otherwise if the function only needs to print something, then leave it empty with no pass statement.

despadam avatar Nov 28 '24 13:11 despadam

General comment: there are a few things that seem a bit "too much" for a beginner. Examples:

  • The with keyword (and context managers)
  • The next keyword, when dealing with CSV

edoardob90 avatar Nov 28 '24 13:11 edoardob90

  • [ ] Test find all files tests on th path /data instead of tutorial/tests/data as specified in the exercised

Snowwpanda avatar Nov 28 '24 14:11 Snowwpanda

In exercise 2 of "Exercises on file writing" solution_read_write_file, we don't ask to remove newlines from each line read, so even a correct solution fails if there's no line.strip().

Also, we should specify that each new line should be terminated with \n

edoardob90 avatar Nov 28 '24 14:11 edoardob90

  • [ ] exercise 1 will not show a solution? may be a general bug

Snowwpanda avatar Nov 29 '24 10:11 Snowwpanda