15
Last seen 5 months ago
Member for 1 year, 5 months, 20 days
Difficulty Easy
can someone explain me why this code works when I use items.sort and sorted(items)?
When I delete sorted from (items) checkIo gives me Fail?
Now it works.
def move_zeros(items: list[int]) -> Iterable[int]:
items.sort(key = abs)
for a in sorted(items):
if a == 0:
ite
More