-3

In python 3, how can we change a list of numbers (such as 4, 1, -7, 1, -3) and change all of the negative signs into positive signs?

1 Answers1

3

I think you are looking for the abs function.

Liam Kelly
  • 3,524
  • 1
  • 17
  • 41