News for hackers. Stuff that matters.
Re:Python Multiple Assignment Is a Puzzle by falcor84 on Sunday July 27, 2014 @07:52AM (#8092517)
Just wanted to add a more functional solution:

    def miss_pos(a):
        b = range(1, len(a)+2)
        return min(set(b).difference(a))
It's probably not as efficient, but remember the first rule of optimization: http://c2.com/cgi/wiki?FirstRuleOfOptimization
Re:Python Multiple Assignment Is a Puzzle by innguest on Sunday July 27, 2014 @01:00PM (#8093257)
I wonder why so much discussion about arbitrary rules of assignment when the solution to the problem can be written (and is more readable) without ever mentioning this complicated "assignment" feature.