## 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.
## Question 5: round_list function (8 marks) Write a function called round_list that takes two arguments: a list of real
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am