RecursionError: maximum recursion depth exceeded in comparison

The tutorial is outdated.
See: RecursionError: maximum recursion depth exceeded in the ft11_magnetostatics.py example of the "Solving PDEs in Python - The FEniCS tutorial Part 1" - #2 by alechammond