Open despadam opened 4 months ago
The exercise solution_find_all_files
has issues:
list(f.parent.iterdir())
but it should not have parent
in it.current_path
instead of f
for consistency.In writing to a file
section:
solution_read_file
should be removed from this section. It is a duplicateIn some reference solutions we already use context managers before they are later introduced. Let's update those solutions to use the syntax where we manually close a file at the end. Then we can add a new exercise in the context managers section to introduce the new syntax
In reference_read_write_file
we are using line.strip()
and len(line)
for a string. However we haven't introduced any of these two in the section for strings in basic_datatypes
solution_print_salutation()
, so they can see the output, since this one cannot be tested normally