formatter.org

Python Formatter

Welcome to use Python formatter and Python beautifier, you can beautify Python code online.

Steps
1. paste your code into the left text box.
2. click the button to format the Python code.