Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
oorrja
GitHub Repository: oorrja/learntosolveit
Path: blob/master/source/python/design_ast_example1.rst
1241 views
============
Ast Example1
============

Question
--------

Example of the Abstract Syntax Tree representation.


Solution
--------

.. literalinclude:: ../../languages/python/design_ast_example1.py
   :language: python
   :tab-width: 4

.. runcode:: ../../languages/python/design_ast_example1.py
   :language: python
   :codesite: ideone

Explanation
===========







.. seealso::

   * :python-suggest-improve:`design_ast_example1 .py`
   * :python-better-explain:`design_ast_example1 .rst`