Saves 10 lines of code by making use of Python built-ins.