Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
List basics
Lists with if statements and loops
Lists in functions
20. Functions with lists – practice 1
Summary

Instruction

Good! Now that you know the difference between working with an original list and creating a copy, it's time for practice!

Exercise

Create function get_absolute_values() that takes a list and modifies the original list so that all numbers are given as absolute values (i.e., get rid of the minus sign for minus numbers). Do not return anything.

Stuck? Here's a hint!

Use:

for i in range(0, len(input_list)):