l = [1, -1, 0, 42, -228]
l1, l2 = [], []
for i, v in enumerate(l):
if v > 0:
l1.append(i)
elif v < 0:
l2.append(i)
print(l1, l2)
bCA9IFsxLCAtMSwgMCwgNDIsIC0yMjhdCgpsMSwgbDIgPSBbXSwgW10KZm9yIGksIHYgaW4gZW51bWVyYXRlKGwpOgoJaWYgdiA+IDA6CgkJbDEuYXBwZW5kKGkpCgllbGlmIHYgPCAwOgoJCWwyLmFwcGVuZChpKQoKcHJpbnQobDEsIGwyKQo=