Why doesn't it work?
numbers = [3, 4, 11, 13, 11, 4, 4, 7, 3]
numbers.sort(key=lambda x: numbers.count(x))
print(numbers)
Why is the output still [3, 4, 11, 13, 11, 4, 4, 7, 3]
sorted No such problem
Why doesn't it work?
numbers = [3, 4, 11, 13, 11, 4, 4, 7, 3]
numbers.sort(key=lambda x: numbers.count(x))
print(numbers)
Why is the output still [3, 4, 11, 13, 11, 4, 4, 7, 3]
sorted No such problem