If last character is 1 or 2 or 3 or 4 or 5 make it 0
elif ( c [ n - 1 ] == '1' or c [ n - 1 ] == '2' or c [ n - 1 ] == '3' or c [ n - 1 ] == '4' or c [ n - 1 ] == '5' ) : NEW_LINE INDENT c [ n - 1 ] = '0' NEW_LINE return ( " " . join ( c ) ) NEW_LINE DEDENT else : NEW_LINE INDENT c [ n - 1 ] = '0' NEW_LINE DEDENT