fork download
  1. a1=[1,3,-9,6,0]# Исходный массив
  2. a2=[abs(v) for v in a1]# Новая еба
  3. print(a2)
Success #stdin #stdout 0.02s 44632KB
stdin
Standard input is empty
stdout
[1, 3, 9, 6, 0]