a1=[1,3,-9,6,0]# Исходный массивa2=[abs(v) for v in a1]# Новая ебаprint(a2)
Standard input is empty
[1, 3, 9, 6, 0]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!