Nov-27-2017, 02:15 AM
Really Mit quiz courseware. I thought they be harder.
Just walk through the code.
Just walk through the code.
def reorder(L): for e in L: #e will be Square then Rectangle, and finally a Circle if e < L[0]: # e always compares to Square. You are compare __lt__ overload. # round 1 Square < Square = False # round 2 Rectangle < Square = True # round 3 Circle < Square = False L[0] = e # Square get Replace by Rectangle
99 percent of computer problems exists between chair and keyboard.