There is no indent space between the function declaration and body.
It should be like this.
Select the text within the function body and use indent option.
It should be like this.
def print2Smallest(arr): arr_size = len(arr) if arr_size < 2: print "invalid output" returnText editors like Notepad++ have the option of indenting the lines of code.
Select the text within the function body and use indent option.