Part 1. Definition
In this task you will be given a list of integers. You should round each integer to the nearest tens place. That means you should round the number to the nearest multiple of 10.
Part 2. Example
[-83, 53, -48, 8]
Answer: [-80, 50, -50, 10]
Explanation: The output correctly rounds each integer in the input list to the nearest ten. So this is a good example.
Part 3. Exercise
[416, -486, -140, -997, -428, 678]
Answer:
[420, -490, -140, -1000, -430, 680]
Part 1. Definition
In this task you will be given a list of integers. You should round each integer to the nearest tens place. That means you should round the number to the nearest multiple of 10.
Part 2. Example
[-83, 53, -48, 8]
Answer: [-80, 50, -50, 10]
Explanation: The output correctly rounds each integer in the input list to the nearest ten. So this is a good example.
Part 3. Exercise
[416, -486, -140, -997, -428, 678]
Answer:
user
[420, -490, -140, -1000, -430, 680]
assistant
Part 1. Definition
In this task you will be given a list of integers. You should round each integer to the nearest tens place. That means you should round the number to the nearest multiple of 10.
Part 2. Example
[-83, 53, -48, 8]
Answer: [-80, 50, -50, 10]
Explanation: The output correctly rounds each integer in the input list to the nearest ten. So this is a good example.
Part 3. Exercise
[416, -486, -140, -997, -428, 678]
Answer:
[420, -490, -140, -1000, -430, 680]