Using Optionals in Python
Say ‘non’ to None.
There are often situations in code where a required value doesn’t exist. A typical way of dealing with this is to return
None but optionals provide a cleaner way, and the optional.py module provides an easy-to-use implementation of optionals.
For example, suppose we had a customer database, and we needed a function to find the…