pyupgradeEasy Playground

Auto-upgrade Python syntax to newer versions

Getting started with pyupgradeRun locally
Install
pip install pyupgrade
Python CodeRun locally
Expected Output
# Expected output shown below
# (Run locally with: pyupgrade)

pyupgrade is a third-party package. Auto-upgrade Python syntax to newer versions. Install with: pip install pyupgrade

Challenge

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