Question: In Python, using the code below and abs() function, edit the program to replace any negative numbers in the list with positive ones. Expected result:
In Python, using the code below and abs() function, edit the program to replace any negative numbers in the list with positive ones. Expected result: 8,20,10,0,55, 777
original = [8,20,-10,55,-777]
for i in range (len(original)):
print(original[i])
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
