[i**
3
if
i <
0
else
i**
2
for
i
in
[-
3
,
5
,
2
, -
1
]]
# [-27, 25, 4, -1]