Question: I have been stuck for a while. i just need something to point me in the right direction Say I have a list of circle

 I have been stuck for a while. i just need something
to point me in the right direction Say I have a list
I have been stuck for a while. i just need something to point me in the right direction

Say I have a list of circle areas that I calculated somewhere, all in five decimal places. And I need to round each element in the list up to its position in decimal places, meaning that I have to round up the first element in the list to one decimal place, the second element in the list to two decimal places, the third element in the list to three decimal places, etc. With map() this is a piece of cake. input : [3.56773, 5.57668, 4.00914, 56.24241, 9.01344, 32.00013] expected output: (3.6, 5.58, 4.099, 56.2424, 9.01344, 32.02013] def mapper(areas): 000 AWNE J. if -_name__ ==" __main__": # Feel free to add your test cases here... pass

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!