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
telo118 [61]
3 years ago
9

The following statement calls a function named half, which returns a value that is half that of the argument. (Assume the number

variable references a float value.) Write code for the function.
Computers and Technology
1 answer:
solniwko [45]3 years ago
4 0

Answer:

The function definition to this question can be given as:

def half (number): #defining a function half and pass a variable number in function parameter

   return number/2 #returns value.

data=half(12)  #defining variable data that holds function return value

print(data) #print value.

Output:

6.0

Explanation:

In the above python program, a function that is half is declare that includes a variable number in the function parameter. Inside the function, the parameter value that is number is divided by 2 and returns its value. In calling time a data variable is defined that holds the function half() value.

In calling time function holds value that is "12" in its parameter and return a value that is "6.0".

You might be interested in
When testing a game, why might you consider throttling the game’s “frames per second”?
Ivenika [448]

Answer:

because if you throttle it then

you can make sure it's okay

4 0
3 years ago
They convert energy from the Sun into usable chemical energy by the process of photosynthesis. They are
Alchen [17]
Photosynthetic organisms are producers because they are producing chemical energy useable by living things.
4 0
3 years ago
One of the differences between a career and a job is that a career?
murzikaleks [220]
A job is more short-term oriented and tends to focus purely on earning money. ... On the other hand, a career is a series of related employment in one field that provides experience for your future and helps you earn a better paycheck and living status.
5 0
3 years ago
Dear Brainly, since you don't respond anyother way...
madreJ [45]

Answer:

that's an amen stop deleting our stuff deleters!.!!!!!

6 0
2 years ago
Read 2 more answers
which term describes the layer of software that resides between the virtual operating system and the physical hardware it runs o
sasho [114]

Answer:

hypervisor

Explanation:

becauseis a thin layer of software that resides between the virtual operating system(s) and the hardware. The physical host is the actual hardware that the hypervisor software runs on.

8 0
3 years ago
Other questions:
  • A standard science experiment is to drop a ball and see how high it bounces. Once the bounciness of the ball has been determined
    10·1 answer
  • You have found an old dusty computer in your basement that you can identify as an original IBM PC. You ask your friend if he kno
    15·1 answer
  • Audrey would like to save her document. She should choose the Save command from the _____. folder menu window directory
    11·1 answer
  • The security administrator for Corp.com wants to provide wireless access for employees as well as guests. Multiple wireless acce
    13·2 answers
  • A large electronic game manufacturer decides to establish a customer service center in Lahore, Pakistan. This is an example of _
    10·1 answer
  • What is lossless compression
    6·2 answers
  • Which of these is true of blackhat and whitehat hackers?
    5·2 answers
  • When entering numbers that start with a zero, apply the _____ number format.
    12·1 answer
  • Why is it important to be a good digital citizen? 2-3 sentences
    10·2 answers
  • Questions: What memory modules are needed if the customer wants 3 GB of RAM? What capacities and how many modules of each capaci
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!