• + 6 comments

    all you need to do is delete the smallest element from list n then print the lenth of list

    print(len(arr))
    while True:                 
        arr = [x for x in arr if x != min(arr)] 
        if len(arr)==0:
            break
        print(len(arr))