Read
Practical Python on Testing (mainly the part on pytest, at the end).
pytest
Practical Python on Lists
Practical Python on Files
Practical Python on Functions