summaryrefslogtreecommitdiff
path: root/progs/unparsable_programs/a314.py
blob: db3d448fe786516371d2710b2c1fa05789b20126 (plain)
1
2
3
def rearrange_numbs(array_nums):
  result = sorted(array_nums, key = lambda i: 0 if i == 0 else -1 / i)
  return result