Four simple steps:
You can click the default unformatted code above to see the effect.
A Python formatter tool can beautify your indented Python code, making your Python code more readable.
It also makes it easier for developers to read code written by other developers.
Before Formatting
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)