Question: Write a function max _ magnitude that accepts a single list full of numbers. It should return the magnitude of the number with the largest

Write a function max_magnitude that accepts a single list full of numbers. It should return the magnitude of the number with the largest magnitude (the number that is furthest away from zero, converted to its absolute value). Print
max_magnitude([300,20,-900]) #900
max_magnitude([10,11,12]) #12
max_magnitude([-5,-1,-89]) #89
Hint: use max and abs!

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!