You are viewing a single comment's thread. Return to all comments →
thank you :) you can make it more readable by making while loop break with a condition..
n = int(input().strip()) arr = [int(arr_temp) for arr_temp in input().strip().split(' ')] while len(arr)!=0: print(len(arr)) arr = [x for x in arr if x != min(arr)]
Seems like cookies are disabled on this browser, please enable them to open this website
Cut the sticks
You are viewing a single comment's thread. Return to all comments →
thank you :) you can make it more readable by making while loop break with a condition..