- Try built-in type hints and MyPy. Interesting URLs: - https://stackoverflow.com/questions/2489669/how-do-python-functions-handle-the-types-of-parameters-that-you-pass-in - https://mypy-lang.org/ - https://github.com/python/mypy - https://mypy.readthedocs.io/en/stable/cheat_sheet_py3.html - Use `assert`, like `assert len(marks) != 0, "List is empty."` - play with INI config files [[wikipedia]](https://en.wikipedia.org/wiki/INI_file) - frozenset - join(my_list) - timeit - format - itertools - print exception messages: ``` except typeError as e: print(e) ``` - logging - import logging + use it (propagate?) - use a `logging.conf` file - use a `RotatingFileHandler` - dunder methods (also known as magic methods) - learn about and use function and class decorators - context manager protocol - `import json` - `import secrets`
assert, likeassert len(marks) != 0, "List is empty."logging.conffileRotatingFileHandlerimport jsonimport secrets