astor — Easy Playground
Read, rewrite, and write Python ASTs as source code
Getting started with astorRun locally
Install
pip install astorPython CodeRun locally
Expected Output
# Expected output shown below # (Run locally with: astor)
astor is a third-party package. Read, rewrite, and write Python ASTs as source code. Install with: pip install astor
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?