Write a function convert_to_millimetres (measurements) which takes a list of measurements in centimetres as a parameter and modifies that list by replacing each measurement with its millimetres...


Write a function convert_to_millimetres (measurements) which takes a list of measurements in centimetres as a<br>parameter and modifies that list by replacing each measurement with its millimetres version, which involves multiplying<br>by 10.<br>You will need to use the updated-list pattern. (Note that there's no need to return anything because the function<br>modifies the original list it was given.)<br>For example:<br>Test<br>Result<br>measurements = [10.0, 25.0, 1.0]<br>convert_to_millimetres(measurements)<br>print (measurements)<br>[30.0, 75.0, 3.0]<br>

Extracted text: Write a function convert_to_millimetres (measurements) which takes a list of measurements in centimetres as a parameter and modifies that list by replacing each measurement with its millimetres version, which involves multiplying by 10. You will need to use the updated-list pattern. (Note that there's no need to return anything because the function modifies the original list it was given.) For example: Test Result measurements = [10.0, 25.0, 1.0] convert_to_millimetres(measurements) print (measurements) [30.0, 75.0, 3.0]

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here