Note

Click here to download the full example code or to run this example in your browser via Binder

# A short Python script

This demonstrates an example `.py` file that is not executed when gallery is generated (see Parsing and executing examples via matching patterns) but nevertheless gets included as an example. Note that no output is capture as this file is not executed.

    # Code source: Óscar Nájera
    # License: BSD 3 clause
    from __future__ import print_function
    print([i for i in range(10)])

Estimated memory usage: 0 MB

Gallery generated by Sphinx-Gallery