sourceryEasy Playground

AI-powered refactoring suggestions for cleaner Python code

Getting started with sourceryRun locally
Install
pip install sourcery # requires auth token
Python CodeRun locally
Expected Output
# Expected output shown below
# (Run locally with: sourcery)

sourcery is a third-party package. AI-powered refactoring suggestions for cleaner Python code. Install with: pip install sourcery # requires auth token

Challenge

Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?