Autopep8

Report a typo

You have a following piece of code:

def function() :
        #a misplaced comment
    return result

When you try to correct it with autopep8 --in-place file.py, you get this:

def function():
    # a misplaced comment
    return result

The program has corrected indentation and whitespace problems, but ignored a serious mistake – the undefined result variable. Why did it happen?

Select one option from the list
___

Create a free account to access the full topic