I prefer to use :: rather than ".. code-block:: python" since the lack of syntax highlighting will often indicate a syntax error in your code. In this case you are missing the semicolons after "def pizzas" and "def vege..."