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
Neporo4naja [7]
3 years ago
14

For python, Write a function named getResults that accepts radius of a sphere and returns the volume and surface area. Call this

function with radius = 3.5 , and display results in one decimal format.
volume = 4/3 * pi * r ^ 3
Surface Area = 4pi * r ^ 2
Computers and Technology
1 answer:
tia_tia [17]3 years ago
7 0

import math

def getResults(r):

   return "Volume = {}\nSurface Area = {}".format(round((4/3)*math.pi*(r**3),1), round((4*math.pi)*(r**2),1))

print(getResults(3.5))

I hope this helps!

You might be interested in
To edit the text in a SmartArt graphic, what must be done first?
chubhunter [2.5K]
You have to go to where you first began the SmartArt then click on it to correct it. Or just double tap it and it should let you
3 0
3 years ago
I want to select between 5 different 2-bit inputs and output it. How many bits do I need to specify which input?
miskamm [114]

Answer:

3 select inputs are required to select a specific input between 5 inputs.

Explanation:

Multiplexer is used to select the inputs from different inputs to a single output. There are many types of multiplexers for different number of inputs selection. 1. 2x1 is the type of multiplexer where 2 inputs and 1 output. This is used to select between these inputs. There is one more pin to select the input between these two inputs that is called <em>select </em>input.

2. Another type is 4x1 multiplexer. There are 4 inputs and one output. In this type of multiplexer 2 select pins are used for selection of input bits between these 4 inputs.

For more than 4 inputs and less than 8 inputs, 8x1 multiplexer is used. this multiplexer uses three inputs for selection purpose.

8 0
2 years ago
Why are magicians gay
AlexFokin [52]

Answer:

Not all of them are

Explanation:

8 0
2 years ago
Read 2 more answers
What statement best describes operating systems?
neonofarm [45]

Answer:b

Explanation:

Course I got I right

8 0
3 years ago
Which of the following is a quantitative question?
slamgirl [31]
D it gives 2 options
3 0
3 years ago
Read 2 more answers
Other questions:
  • Complete the function ending_time that determines the final clock time after a task has been completed. The function takes three
    7·1 answer
  • During the past decade ocean levels have been rising faster than in the past, an average of approximately 3.1 millimeters per ye
    14·1 answer
  • .A menu within a menu is called what? (nested menu ,submenu ,recursive menu ,formal list )
    12·1 answer
  • You are informed that all the users within the network are unable to access the Internet. You decide to start troubleshooting fr
    8·1 answer
  • Consider the following constructor for an immutable matrix ADT:
    8·1 answer
  • Which method is the quickest for removing multiple different indent types applied to a paragraph
    11·2 answers
  • Select the correct answer.
    11·1 answer
  • After you have been working out for a month, should your Resting Heart Rate increase or decrease?
    6·1 answer
  • If you double the force of and object what happens to the acceleration
    10·1 answer
  • Which attributes are indicators that a website is reliable? Check all that apply is up to date explains sources of data is an ed
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!