## Question 5: round_list function (8 marks) Write a function called round_list that takes two arguments: a list of real

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

## Question 5: round_list function (8 marks) Write a function called round_list that takes two arguments: a list of real

Post by answerhappygod »

## Question 5: round_list function (8 marks) Write a function
called round_list that takes two arguments: a list of real numbers
and an integer. The function should create a new list containing
the same number of real numbers as the original list, but rounded
off to the number of decimals indicated by the second argument. For
example, round_list( [12.34529, 10.6758, 11.6111, 56.89], 2) should
return the list [12.35, 10.68, 11.61, 56.89].
Add code to test your function.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply