Python Online Formatter

    Code

    How to use Python Online Formatter

    Four easy step:

    1. Copy paste your Python code to the code editor.
    2. Click the 'Formatter' button to format the editor code.
    3. The output will be displayed in the code editor.
    4. You can click 'Copy' button to copy your formatted Python code.

    You can click on the default unformatted code above to see the effect.

    What is python formatter?

    Python formmatter is beautify your minified python code, this make your python code more readable.

    It also makes it easier for developers to read other developers codes as well. 

    Python Online Formatter example 

    Before

    def example_function(arg1,arg2):
     result=arg1+arg2
    print("The result is",result)
    Formatted code

    def example_function(arg1,arg2):
     result=arg1+arg2
    print("The result is",result)