.. note::
    :class: sphx-glr-download-link-note

    Click :ref:`here <sphx_glr_download_auto_examples_no_output_just_code.py>` to download the full example code or run this example in your browser via Binder
.. rst-class:: sphx-glr-example-title

.. _sphx_glr_auto_examples_no_output_just_code.py:


A short Python script
=====================

A script that is not executed when gallery is generated but nevertheless
gets included as an example.
Doing a list


.. code-block:: python


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

**Total running time of the script:** ( 0 minutes  0.000 seconds)


.. _sphx_glr_download_auto_examples_no_output_just_code.py:


.. only :: html

 .. container:: sphx-glr-footer
    :class: sphx-glr-footer-example


  .. container:: binder-badge

    .. image:: https://static.mybinder.org/badge.svg
      :target: https://mybinder.org/v2/gh/sphinx-gallery/sphinx-gallery.github.io/master?urlpath=lab/tree/notebooks/auto_examples/no_output/just_code.ipynb
      :width: 150 px


  .. container:: sphx-glr-download

     :download:`Download Python source code: just_code.py <just_code.py>`



  .. container:: sphx-glr-download

     :download:`Download Jupyter notebook: just_code.ipynb <just_code.ipynb>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.readthedocs.io>`_
