1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Irina18 [472]
3 years ago
6

Write a function max_magnitude() with two integer input parameters that returns the largest magnitude value. Use the function in

a program that takes two integer inputs, and outputs the largest magnitude value.Ex: If the inputs are:57the function returns:7Ex: If the inputs are:-8-2the function returns:-8
Computers and Technology
1 answer:
storchak [24]3 years ago
4 0

I wrote my code in python 3.8:

def max_magnitude(num1, num2):

   return num1 if abs(num1) > abs(num2) else num2

print(max_magnitude(-8,-2))

I hope this helps!

You might be interested in
Proszę daje wszystko potrzebuje tego
Stolb23 [73]
I’m sorry I do not speak that
5 0
3 years ago
Read 2 more answers
Who lives in a pineapple under the sea?
VashaNatasha [74]

Answer:

CCCCCC

Explanation:

4 0
3 years ago
Read 2 more answers
Compression is the action of storing a piece of data with__________ bits.
soldi70 [24.7K]
The answer is fewer because I know a lot about tech I take classes
8 0
3 years ago
Read 2 more answers
List four services offered by the Post Office.​
Rus_ich [418]

Answer:International Mail. You can mail postcards, letters, large envelopes, and packages from the United States to other countries. ...

Military Mail. ...

Money Orders. ...

Passports. ...

Paying for Merchandise. ...

PC Postage. ...

Post Office™ Boxes. ...

Stamp Collecting.

Explanation:

8 0
2 years ago
It is not a good idea in a cover letter to mention another person whom the employer knows.
wel
You can mention them if it is OK that they notified you of the position and you feel confident that they have a good reputation within the company. And I would mention it only briefly by saying something along the lines of I have the pleasure of knowing Mr. Jones, who informed me there is an open position within your organization. He speaks very highly of your company and I would be interested in seeing if there’s an opportunity for me.
3 0
3 years ago
Other questions:
  • "what do you perform when you want to recall specific records from a database"
    13·1 answer
  • Describe software as a service. what features distinguish it from application software installed on a personal computing device
    11·2 answers
  • The ____ provides access to the Internet may also be internal.
    14·2 answers
  • ​Microsoft claims that the microsoft project software can _____.
    11·1 answer
  • The computerization of the layout and paste-up process further complicated printing, as did the digitizing of photographs.
    12·1 answer
  • There are how many GPS satellites orbiting the earth
    15·1 answer
  • The File method lastModified() returns
    10·1 answer
  • Suppose Client A initiates a Telnet session with Server S. At about the same time, Client B also initiates a Telnet session with
    13·1 answer
  • HELP PLS QUICK TRUE OR FALSE QUESTION
    7·2 answers
  • What is true about the dilation?
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!